Creates an array of numbers within a specified range with optional step.
Optional
const ascending = Arr.range(asUint32(1), asUint32(5));const empty = Arr.range(asUint32(2), asUint32(2));assert.deepStrictEqual(ascending, [1, 2, 3, 4]);assert.deepStrictEqual(empty, []); Copy
const ascending = Arr.range(asUint32(1), asUint32(5));const empty = Arr.range(asUint32(2), asUint32(2));assert.deepStrictEqual(ascending, [1, 2, 3, 4]);assert.deepStrictEqual(empty, []);
Creates an array of numbers within a specified range with optional step.