Array fill with number
$ yarn add array-with-number
or
$ npm install --save array-with-number
const arrayFillWithNumber = require('array-fill-with-number');
arrayFillWithNumber(10);
//=> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
arrayFillWithNumber(10, 1);
//=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
Type: number
Length of number
Type: number
Default: 0
Start of number
MIT © Jimmy Moon