Skip to content

greaterThanTime

Checks whether a TheTime is greater than or equal to a threshold.

Interactive example

Syntax

Standard signature

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

Curried signature

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

Parameters

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

Return value

true if input is greater than or equal to the threshold.

See also

Released under the MIT license.