MCPcopy Index your code
hub / github.com/microsoft/SandDance / duplicateArray

Function duplicateArray

docs/app/js/sanddance-app.js:69518–69520  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

69516 return Math.round(value / config.EPSILON) * config.EPSILON;
69517}
69518function duplicateArray(array) {
69519 return array.clone ? array.clone() : new Array(array.length);
69520}
69521function map(value, func, result) {
69522 if (isArray(value)) {
69523 const array = value;

Callers 1

mapFunction · 0.70

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected