MCPcopy Create free account
hub / github.com/microsoft/SandDance / patchCubeArray

Function patchCubeArray

docs/tests/v2/es6/js/sanddance.js:146745–146750  ·  view source on GitHub ↗
(allocatedSize, empty, cubes)

Source from the content-addressed store, hash-verified

146743exports.patchCubeArray = patchCubeArray;
146744
146745function patchCubeArray(allocatedSize, empty, cubes) {
146746 const patched = new Array(allocatedSize);
146747 patched.fill(empty);
146748 cubes.forEach(cube => patched[cube.ordinal] = cube);
146749 return patched;
146750}
146751},{}],"aZir":[function(require,module,exports) {
146752"use strict";
146753

Callers

nothing calls this directly

Calls 1

forEachMethod · 0.45

Tested by

no test coverage detected