xcxerxes-array-range

0.0.2 • Public • Published

xcxerxes-array-range NPM version Build Status

range array

Example

const range = require('xcxerxes-array-range')

console.log(range(4))
// -> [0, 1, 2, 3]

console.log(range(1, 4))
// -> [1, 2, 3]

console.log(range(4).map(item => item * item))
// -> [0, 1, 4, 9]

console.log(range(-2, 1))
// -> [-2, -1, 0]

License

Copyright © 2018 xcxerxes Released under the MIT license

/xcxerxes-array-range/

    Package Sidebar

    Install

    npm i xcxerxes-array-range

    Weekly Downloads

    1

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    7.76 kB

    Total Files

    7

    Last publish

    Collaborators

    • xcxerxes