The maxLessThan() method checks whether the is greater than the range of a specified object.
range.class.ts
public maxLessThan(value: number): boolean {
return this.#maximum.lessThan(value);
}
Parameters
value:
The value of type to test.
Return type
Returns
The return value is a type indicating whether the given is greater 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.maxLessThan(28);
// Returns false.
range.maxLessThan(27);