Skip to content

less

Checks that a TheDate is strictly less than a threshold.

Interactive example

Syntax

Classic signature

typescript
function less<
	GenericInput extends TheDate
>(
	input: GenericInput,
	threshold: TheDate
): boolean

Curried signature

typescript
function less<
	GenericInput extends TheDate
>(
	threshold: TheDate
): (input: GenericInput) => boolean

Parameters

  • threshold: Limit date.
  • input: Date under test.

Return value

true if input is before threshold.

See also

Released under the MIT license.