UNPKG
0s
Version:
latest (1.0.0)
1.0.0
A tool to create an array filled with 0's
github.com/joeyism/node-zeroes
joeyism/node-zeroes
0s
/
zeroes.js
10 lines
(8 loc)
•
152 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
"use strict"
;
module
.
exports
=
function
(
length
){
var
arr = [];
for
(
var
i =
0
; i < length; i++){ arr.
push
(
0
); }
return
arr; };