githubEdit

maxLessThan()

Checks whether the value is greater than the maximum range of a specified `Range` object

Range.prototype.maxLessThan()

The maxLessThan() method checks whether the value is greater than the maximum range of a specified Range object.

range.class.ts
public maxLessThan(value: number): boolean {
  return this.#maximum.lessThan(value);
}

Parameters

The value of numberarrow-up-right type to test.

Return type

Returns

The return value is a booleanarrow-up-right type indicating whether the given value is greater than maximum range of a specified Range object.

Example usage

Last updated