0s
v1.0.0
Published
A tool to create an array filled with 0's
Downloads
31
Maintainers
Readme
0s
A simple tool to create an array with only 0's
Installation
To install, run
$ npm install --save 0s
Usage
To use, require it first by
var zeroes = require("0s");
Then input the array length that you want
zeroes() // []
zeroes(0) // []
zeroes(1) // [1]
zeroes(5) // [1, 1, 1, 1, 1]
Versions
1.0.0 First version