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

Function intern_delete

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

Source from the content-addressed store, hash-verified

457}
458
459function intern_delete({_intern, _key}, value) {
460 const key = _key(value);
461 if (_intern.has(key)) {
462 value = _intern.get(key);
463 _intern.delete(key);
464 }
465 return value;
466}
467
468function keyof(value) {
469 return value !== null && typeof value === "object" ? value.valueOf() : value;

Callers 2

deleteMethod · 0.85
deleteMethod · 0.85

Calls 3

hasMethod · 0.45
getMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected