Checks whether the primitive value of a specified object is less than every value of the given values
Last updated 1 year ago
Less.prototype.thanEvery()
Checks whether the of a specified is less than every value of the given .
public thanEvery(...values: number[]): boolean { return Array.isArray(values) ? values.every((value) => this.valueOf() < value) : false; }
...values:
[]
A of the numbers to test.
The return value is a indicating whether the is less than every value of the given .
// Example usage. import { Less } from '@angular-package/range'; // Define constant `id`. const id = 390; // Returns `false`. new Less(id).thanEvery(387, 388, 390); // Returns `true`. new Less(id).thanEvery(393, 392, 394, 391);
object
number
boolean
values