Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/node
/ cloneSet
Function
cloneSet
lib/internal/fs/glob.js:127–133 ·
view source on GitHub ↗
(values)
Source
from the content-addressed store, hash-verified
125
}
126
127
function
cloneSet(values) {
128
const
cloned =
new
SafeSet();
129
for
(
const
value of values) {
130
cloned.add(value);
131
}
132
return
cloned;
133
}
134
135
class
Cache {
136
#cache =
new
SafeMap();
Callers
2
#nextRealpathsSync
Method · 0.85
#nextRealpaths
Method · 0.85
Calls
1
add
Method · 0.65
Tested by
no test coverage detected