Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WebReflection/weak-value
/ constructor
Method
constructor
cjs/index.js:36–41 ·
view source on GitHub ↗
(iterable)
Source
from the content-addressed store, hash-verified
34
});
35
36
constructor(iterable) {
37
super();
38
if
(iterable)
39
for
(
const
[key, value] of iterable)
40
this.set(key, value);
41
}
42
43
clear() {
44
for
(
const
[_, [ref]] of super[iterator]())
Callers
nothing calls this directly
Calls
1
set
Method · 0.95
Tested by
no test coverage detected