0s

A tool to create an array filled with 0's

Usage no npm install needed!

<script type="module">
  import s from 'https://cdn.skypack.dev/0s';
</script>

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