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

Function zeroArray

docs/tests/v2/es6/js/sanddance.js:125608–125615  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

125606
125607
125608function zeroArray(n) {
125609 var a = [],
125610 i = -1;
125611
125612 while (++i < n) a[i] = 0;
125613
125614 return a;
125615}
125616
125617function functor(d) {
125618 return typeof d === "function" ? d : function () {

Callers 1

_defaultFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected