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