thanSome()
Checks whether the primitive value of a specified object is greater than some given values
Greater.prototype.thanSome()
Greater.prototype.thanSome()public thanSome(...values: number[]): boolean {
return Array.isArray(values)
? values.some((value) => this.valueOf() < value)
: false;
}Parameters
Return type
Returns
Example usage
Last updated