hasSome()
Checks whether some values are in the range of a specified `Range` object
Range.prototype.hasSome()
Range.prototype.hasSome()Checks whether some values are in the range of a specified Range object.
public hasSome(...values: number[]): boolean {
return values.some((value) => this.has(value));
}Parameters
A rest parameter of numbers to test.
Return type
Returns
The return value is a boolean indicating whether some values are in the range of a specified Range object.
Example usage
Last updated
Was this helpful?