Overview
The `Range` object
Last updated
The `Range` object
Last updated
Range {}
The Range
object represents a range between a minimum and maximum.
public get [Symbol.toStringTag](): string
The |
#maximum: Maximum<Max>
Private property of the |
#minimum: Minimum<Min>
Private property of the |
public static createFrom(): Range<number, number, Step>
Creates the |
public static createMaximum(): Maximum<Value>
Returns the |
public static createMinimum(): Minimum<Value>
Returns the |
public forEachStep(): this
Performs the specified action for each step in the maximum range of an |
public getCurrentRange(): Readonly<Array<number>> | undefined
Returns a range of numbers from minimum to the current value by the |
public getCurrentStep(): number | undefined Returns the step of the range value. |
public getRange(): number[]
Returns range of numbers from minimum to the given |
public getRangeOfStep(): Readonly<Array<number>> | undefined
Returns a range of numbers by the specified |
public getValueOfStep(): number | undefined
Returns the range value of the given |
public hasEvery(): boolean
Checks whether every value of the given |
public isBetween(): boolean
Checks whether range of the given |
public isBetweenEvery(): boolean
Checks whether the range of a specified |
public isBetweenSome(): boolean
Checks whether the range of a specified |
public maxGreaterThan(): boolean
Checks whether the |
public maxLessThan(): boolean
Checks whether the |
public minGreaterThan(): boolean
Checks whether the |
public minLessThan(): boolean
Checks whether the |
public setValue(): this
Sets the range |
public setValueToStep(): this
Sets the |
public stepByStep(): this Performs a callback function with the ability to decide when to move to the next step of the range. |