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

Function zeroArray

docs/app/js/sanddance-app.js:141002–141006  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

141000 };
141001} // TODO reuse arrays?
141002function zeroArray(n) {
141003 var a = [], i = -1;
141004 while(++i < n)a[i] = 0;
141005 return a;
141006}
141007function functor(d) {
141008 return typeof d === "function" ? d : function() {
141009 return d;

Callers 1

cloudFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected