Skip to content

greater ​

The greater() function checks whether a TheDate is greater than or equal to a threshold.

Interactive example ​

Syntax ​

Classic signature ​

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

Curried signature ​

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

Parameters ​

  • threshold: Comparison date.
  • input: TheDate or SerializedTheDate.

Return value ​

true if input is after or equal to threshold.

See also ​

Released under the MIT license.