Checks whether the primitive value of a specified object is greater than some given values
Last updated 3 years ago
Greater.prototype.thanSome()
Checks whether the of a specified is greater 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 greater than some given .
// Example usage. import { Greater } from '@angular-package/range'; // Define constant `id`. const id = 390; // Returns `false`. new Greater(id).thanSome(390, 391, 392); // Returns `true`. new Greater(id).thanSome(389, 391, 392);
object
number
boolean
values