MCPcopy
hub / github.com/immutable-js/immutable-js / get

Method get

src/Map.js:257–271  ·  view source on GitHub ↗
(shift, keyHash, key, notSetValue)

Source from the content-addressed store, hash-verified

255 }
256
257 get(shift, keyHash, key, notSetValue) {
258 if (keyHash === undefined) {
259 keyHash = hash(key);
260 }
261 const bit = 1 << ((shift === 0 ? keyHash : keyHash >>> shift) & MASK);
262 const bitmap = this.bitmap;
263 return (bitmap & bit) === 0
264 ? notSetValue
265 : this.nodes[popCount(bitmap & (bit - 1))].get(
266 shift + SHIFT,
267 keyHash,
268 key,
269 notSetValue
270 );
271 }
272
273 update(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
274 if (keyHash === undefined) {

Callers

nothing calls this directly

Calls 3

hashFunction · 0.90
popCountFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected