@extra-array/arange

1.1.7 • Public • Published

Return evenly spaced values within a given interval, like arange().

const arange = require('@extra-array/arange');
// arange(<start>, <stop>, [step=1], [target=[]], [at])
// -> <target>

arange(0, 3);
// [0, 1, 2]
arange(0, -4, -2);
// [0, -2]
arange(0, -4, -2, [10, 11]);
// [10, 11, 0, -2]
arange(0, -4, -2, [10, 11], 1);
// [10, 0, -2]

With extra-array try Array.arange() instead.


extra-array

Package Sidebar

Install

npm i @extra-array/arange

Weekly Downloads

4

Version

1.1.7

License

MIT

Unpacked Size

2.58 kB

Total Files

4

Last publish

Collaborators

  • wolfram77