range
Yields the numbers in the given range as an array
declare function range(start: number, end: number, step?: number): number[];
declare function range(start: number, end: number, step?: number): number[];
Name | Type | Optional | Description |
---|---|---|---|
start | number | No | The start of the range |
end | number | No | The end of the range (inclusive) |
step | number | Yes | The amount to increment between each number |