Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
4
const
collected = [];
5
6
const
onValueCollected = key => {
7
collected.push(key);
8
};
9
10
console.assert(wv.has(
'key'
),
'key is present'
);
11
console.assert(wv.delete(
'key'
),
'key is removed'
);
Callers
2
WeakValue
Class · 0.85
WeakValue
Class · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected