Returns an array of numbers between min and max values.
min
max
Values are inclusive.
Returns all values between min and max by default. Pass in a step to change the granularity.
step
Optional
range({ min: 0, max: 6 });// => [0, 1, 2, 3, 4, 5, 6]range({ min: 0, max: 6, step: 2 });// => [0, 2, 4, 6] Copy
range({ min: 0, max: 6 });// => [0, 1, 2, 3, 4, 5, 6]range({ min: 0, max: 6, step: 2 });// => [0, 2, 4, 6]
Generated using TypeDoc
Returns an array of numbers between
min
andmax
values.Values are inclusive.
Returns all values between
min
andmax
by default. Pass in astep
to change the granularity.