@extra-array/from-range
TypeScript icon, indicating that this package has built-in type declarations

2.10.19 • Public • Published

Generates array from given number range. 📦 😺 🏃 📼 🌔 📜 📰 📘

Alternatives: from, from$, fromRange, fromApply.

This is part of package extra-array.


array.fromRange(v, [V], [s]);
// v: start number
// V: end number, excluding (v)
// s: step size (1)
const array = require("extra-array");

array.fromRange(0, 4);
// [ 0, 1, 2, 3 ]

array.fromRange(0, 8, 2);
// [ 0, 2, 4, 6 ]

Package Sidebar

Install

npm i @extra-array/from-range

Weekly Downloads

2

Version

2.10.19

License

MIT

Unpacked Size

3.98 kB

Total Files

8

Last publish

Collaborators

  • wolfram77