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