Skip to content

greater

The greater() function checks whether a TheDate is strictly greater than a threshold.

Interactive example

Syntax

Classic signature

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

Curried signature

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

Parameters

  • threshold: Comparison date.
  • input: Date under test (classic signature).

Return value

true if input is strictly after threshold.

See also

Released under the MIT license.