MCPcopy 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
127function cloneSet(values) {
128 const cloned = new SafeSet();
129 for (const value of values) {
130 cloned.add(value);
131 }
132 return cloned;
133}
134
135class Cache {
136 #cache = new SafeMap();

Callers 2

#nextRealpathsSyncMethod · 0.85
#nextRealpathsMethod · 0.85

Calls 1

addMethod · 0.65

Tested by

no test coverage detected