The maxGreaterThan() method checks whether the is less than the range of a specified object.
range.class.ts
public maxGreaterThan(value: number): boolean {
return this.#maximum.greaterThan(value);
}
Parameters
value:
The value of type to test.
Return type
Returns
The return value is a type indicating whether the given is less than range of a specified object.
Example usage
// Example usage.
import { Range } from '@angular-package/range';
// Create new instance.
const range = new Range(4, 27);
// Returns true.
range.maxGreaterThan(26);
// Returns false.
range.maxGreaterThan(27);