Constructors
constructor
- new Range(start: number, end: number): Range
-
Parameters
-
start: number
-
end: number
Methods
includes
- includes(arg: number | Range): boolean
-
Parameters
Returns boolean
Private includesElement
- includesElement(arg: number): boolean
-
Parameters
Returns boolean
Private includesRange
- includesRange(arg: Range): boolean
-
Parameters
Returns boolean
step
- step(by?: number): IterableIterator<number>
-
Parameters
-
Default value by: number = 1
Returns IterableIterator<number>
toArray
- toArray(step?: number): number[]
-
Parameters
-
Default value step: number = 1
Returns number[]