Checks whether the of a specified is less than the given .
less.class.ts
public than(value: number): boolean {
return typeof value === 'number' ? this.valueOf() < value : false;
}
Parameters
value:
The value of type to test.
Return type
Returns
The return value is a indicating whether the is less than the given .
Example usage
// Example usage.
import { Less } from '@angular-package/range';
// Define constant `id`.
const id = 390;
// Returns `false`.
new Less(id).than(389);
// Returns `false`.
new Less(id).than(390);
// Returns `true`.
new Less(id).than(391);