Type Alias: RangeIterable
RangeIterable:
Iterable
<number
> &object
An iterable that yields integers in a range. Has a method for obtaining a new iterable that skips numbers in steps.
Type declaration
step()
step: <
Step
>(step
) =>Iterable
<number
>
Returns an iterable that yields integers in the same range as the original
RangeIterable, but steps through the range in increments of step
instead of 1.
Type Parameters
• Step extends number
Parameters
• step: PositiveInteger
<Step
>
Returns
Iterable
<number
>
Throws
if step
is not a positive integer.