has()
Checks whether the value is in the range of a specified `Range` object
Range.prototype.has()
Range.prototype.has()public has(value: number): boolean {
return (
(this.minLessThan(value) && this.maxGreaterThan(value)) ||
value === this.min ||
value === this.max
);
}Parameters
Return type
Returns
Example usage
Last updated