MCPcopy Create free account
hub / github.com/immutable-js/immutable-js / get

Method get

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

Source from the content-addressed store, hash-verified

344 }
345
346 get(shift, keyHash, key, notSetValue) {
347 if (keyHash === undefined) {
348 keyHash = hash(key);
349 }
350 const idx = (shift === 0 ? keyHash : keyHash >>> shift) & MASK;
351 const node = this.nodes[idx];
352 return node
353 ? node.get(shift + SHIFT, keyHash, key, notSetValue)
354 : notSetValue;
355 }
356
357 update(ownerID, shift, keyHash, key, value, didChangeSize, didAlter) {
358 if (keyHash === undefined) {

Callers

nothing calls this directly

Calls 2

hashFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected