MCPcopy Create free account
hub / github.com/breck7/scroll / intern_get

Function intern_get

external/.d3.js:447–450  ·  view source on GitHub ↗
({_intern, _key}, value)

Source from the content-addressed store, hash-verified

445}
446
447function intern_get({_intern, _key}, value) {
448 const key = _key(value);
449 return _intern.has(key) ? _intern.get(key) : value;
450}
451
452function intern_set({_intern, _key}, value) {
453 const key = _key(value);

Callers 3

getMethod · 0.85
hasMethod · 0.85
hasMethod · 0.85

Calls 2

hasMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected