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

Function zeroArray

docs/tests/v3/es6/js/sanddance-test-es6.js:88933–88937  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

88931 };
88932} // TODO reuse arrays?
88933function zeroArray(n) {
88934 var a = [], i = -1;
88935 while(++i < n)a[i] = 0;
88936 return a;
88937}
88938function functor(d) {
88939 return typeof d === "function" ? d : function() {
88940 return d;

Callers 1

cloudFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected