than()
Checks whether the primitive value of a specified object is less than the given value
Less.prototype.than()
Less.prototype.than()Checks whether the primitive value of a specified object is less than the given value.
public than(value: number): boolean {
return typeof value === 'number' ? this.valueOf() < value : false;
}Parameters
The value of number type to test.
Return type
Returns
The return value is a boolean indicating whether the primitive value is less than the given value.
Example usage
Last updated