range
export declare function range({ start, end }: ShardRange): number[];
export declare function range({ start, end }: ShardRange): number[];
Yields the numbers in the given range as an array
Example
range({ start: 3, end: 5 }); // [3, 4, 5]
range({ start: 3, end: 5 }); // [3, 4, 5]
Name | Type | Optional | Description |
---|---|---|---|
{ start, end } | ShardRange | No | None |