MCPcopy Create free account
hub / github.com/WebReflection/weak-value / onValueCollected

Function onValueCollected

test/index.js:6–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4const collected = [];
5
6const onValueCollected = key => {
7 collected.push(key);
8};
9
10console.assert(wv.has('key'), 'key is present');
11console.assert(wv.delete('key'), 'key is removed');

Callers 2

WeakValueClass · 0.85
WeakValueClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected