than()

Checks whether the primitive value of a specified object is greater than the given value

Greater.prototype.than()

Checks whether the primitive value of a specified objectarrow-up-right is greater than the given value.

greater.class.ts
public than(value: number): boolean {
  return typeof value === 'number' ? this.valueOf() > value : false;
}

Parameters

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

Return type

Returns

The return value is a booleanarrow-up-right indicating whether the primitive value is greater than the given value.

Example usage

Last updated