Back to Arrays
arange
Evenly spaced values over a half-open interval [start, stop).
Syntax
arange(start, stop, step) → Array [start, start+step, ...] up to but excluding stop
Backends
TypeScript
Description
Evenly spaced values over a half-open interval [start, stop).
Parameters
| Name | Description |
|---|---|
| start | Start value (inclusive); defaults to 0 |
| stop | Stop value (exclusive) |
| step | Spacing between values; defaults to 1 |
Returns
Array [start, start+step, ...] up to but excluding stop