Checks whether the primitive value of a specified object is greater than the given value
Last updated 1 year ago
Was this helpful?
Greater.prototype.than()
Checks whether the of a specified is greater than the given .
public than(value: number): boolean { return typeof value === 'number' ? this.valueOf() > value : false; }
value:
The value of type to test.
The return value is a indicating whether the is greater than the given .
// Example usage. import { Greater } from '@angular-package/range'; // Define constant `id`. const id = 390; // Returns `false`. new Greater(id).than(390); // Returns `true`. new Greater(id).than(389);
object
number
boolean
value