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

Function nextHash

src/Hash.ts:251–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249}
250
251function nextHash(): number {
252 const nextHash = ++_objHashUID;
253 if (_objHashUID & 0x40000000) {
254 _objHashUID = 0;
255 }
256 return nextHash;
257}
258
259// If possible, use a WeakMap.
260// TODO using WeakMap should be true everywhere now that WeakMap is widely supported: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap

Callers 2

hashSymbolFunction · 0.85
hashJSObjFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected