lessThan
The lessThan() method checks whether a number is strictly less (<) than a given threshold. It can be used in a curried way to ease functional composition.
Interactive example
Syntax
Classic signature
typescript
function lessThan<
GenericInput extends number
>(
input: GenericInput,
threshold: number
): booleanCurried signature
typescript
function lessThan<
GenericInput extends number
>(
threshold: number
): (input: GenericInput) => booleanParameters
input: The number to compare (classic signature only).threshold: The comparison threshold.
Return value
returns true if the value is strictly less than the threshold, false otherwise.
See also
less- Checks whether a number is less than or equal (<=)greater- Checks whether a number is greater than or equal (>=)greaterThan- Checks whether a number is strictly greater (>)
