array-with-number

0.2.0 • Public • Published

array-with-number Build Status

Array fill with number

Install

$ yarn add array-with-number

or

$ npm install --save array-with-number

Usage

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]

API

arrayFillWithNumber(lenght, [start])

length

Type: number

Length of number

start

Type: number
Default: 0

Start of number

License

MIT © Jimmy Moon

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    333
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    333

Package Sidebar

Install

npm i array-with-number

Weekly Downloads

333

Version

0.2.0

License

MIT

Last publish

Collaborators

  • ragingwind