thanSome()

Checks whether the primitive value of a specified object is less than some given values.

Less.prototype.thanSome()

Checks whether the primitive value of a specified object is less than some given values.

less.class.ts
public thanSome(...values: number[]): boolean {
  return Array.isArray(values)
    ? values.some((value) => this.valueOf() < value)
    : false;
}

Parameters

...values:number[]

A rest parameter of the numbers to test.

Return type

Returns

The return value is a boolean indicating whether the primitive value is less than some given values.

Example usage

Last updated