MCPcopy Index your code
hub / github.com/SocketCluster/socketcluster / cloneArrayDeep

Function cloneArrayDeep

app/public/socketcluster-client.js:6253–6259  ·  view source on GitHub ↗
(val, instanceClone)

Source from the content-addressed store, hash-verified

6251}
6252
6253function cloneArrayDeep(val, instanceClone) {
6254 const res = new val.constructor(val.length);
6255 for (let i = 0; i < val.length; i++) {
6256 res[i] = cloneDeep(val[i], instanceClone);
6257 }
6258 return res;
6259}
6260
6261/**
6262 * Expose `cloneDeep`

Callers 1

cloneDeepFunction · 0.85

Calls 1

cloneDeepFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…