Skip to content

lessThan

lessThan() tests whether a Number is strictly less than a threshold (wrapped or raw). Supports the curried version.

Interactive example

Syntax

Classic signature

typescript
function lessThan(
	value: Number, 
	threshold: Number | number
): boolean

Curried signature

typescript
function lessThan(
	threshold: Number | number
): (value: Number) => boolean

Parameters

  • value : base value (classic signature only).
  • threshold : comparison threshold.

Return value

true if unwrap(value) < unwrap(threshold), otherwise false.

See also

Released under the MIT license.