Rest
...params: number[]Protected
_lengthAlias of nth
.
Returns the number at index
in this range. index
can be negative to access indices starting from the end.
Alias of includes
.
Returns true if n
is inside of this range.
Protected
iReadonly
startThe start of this range of numbers (inclusive).
Readonly
stepEach iteration is increased by this amount.
Protected
Readonly
stepThe sign of step
.
Readonly
stopThe stop/end point of this range of numbers (exclusive).
Returns true if this range is equal to another.
A class for representing a range of numbers and also iterating through them. When
next.done
is true, resets the internal counter back tostart
.