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