@extra-array/from-range.min

Generates array from given number range.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@extra-array/from-range.min
1412.10.198 months ago2 years agoMinified + gzip package size for @extra-array/from-range.min in KB

Readme

Generates array from given number range. :package: :smileycat: :running: :vhs: :moon: :scroll: :newspaper: :bluebook:
Alternatives: from, from$, fromRange, fromApply.

This is part of package extra-array.

This is browserified, minified version of @extra-array/from-range.
It is exported as global variable arrayfromRange.
CDN: unpkg
, jsDelivr.



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 ]