getValueOfStep()
Returns the range value of the given `step`
Range.prototype.getValueOfStep()
Range.prototype.getValueOfStep()The getValueOfStep() method returns the range value of the given step.
public getValueOfStep(step: number): number | undefined {
return step > 0 && step <= this.steps ? this.range[step - 1] : undefined;
}Parameters
Step parameter of number type to retrieve the range value.
Return type
Returns
The return value is the range value of the given step within a range otherwise undefined.
Example usage
Last updated
Was this helpful?