Generates array from given number range.
npm install @extra-array/from-rangeGenerates array from given number range.
:package:
:smiley_cat:
:running:
:vhs:
:moon:
:scroll:
:newspaper:
:blue_book:
> Alternatives: [from], [from$], [fromRange], [fromApply].
> This is part of package [extra-array].
[extra-array]: https://www.npmjs.com/package/extra-array
``javascript`
array.fromRange(v, [V], [s]);
// v: start number
// V: end number, excluding (v)
// s: step size (1)
`javascript
const array = require("extra-array");
array.fromRange(0, 4);
// [ 0, 1, 2, 3 ]
array.fromRange(0, 8, 2);
// [ 0, 2, 4, 6 ]
``
[from]: https://github.com/nodef/extra-array/wiki/from
[fromRange]: https://github.com/nodef/extra-array/wiki/fromRange
[fromApply]: https://github.com/nodef/extra-array/wiki/fromApply
[from$]: https://github.com/nodef/extra-array/wiki/from$