Skip to content

lessTime

The lessTime() function checks if a TheTime is strictly less than a threshold.

Interactive example

Syntax

Standard signature

typescript
function lessTime<
	GenericInput extends TheTime
>(
	input: GenericInput,
	threshold: TheTime
): boolean

Curried signature

typescript
function lessTime<
	GenericInput extends TheTime
>(
	threshold: TheTime
): (input: GenericInput) => boolean

Parameters

  • threshold: Duration limit.
  • input: Duration to compare.

Return value

true if input is strictly less than the threshold.

See also

Released under the MIT license.