minLessThan()

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

Range.prototype.minLessThan()

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

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

Parameters

value:number

The value of number type to test.

Return type

Returns

The return value is a boolean type indicating whether the given value is greater than minimum range of a specified Range object.

Example usage

// Example usage.
import { Range } from '@angular-package/range';

// Create new instance.
const range = new Range(4, 27);

// Returns true.
range.minLessThan(5);

// Returns false.
range.minLessThan(4);

Last updated