Skip to content

greaterThanTime ​

Vérifie qu'un TheTime est strictement supérieur à un seuil.

Exemple interactif ​

Syntaxe ​

Signature classique ​

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

Signature currifiée ​

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

Paramètres ​

  • threshold : Durée limite.
  • input : TheTime ou SerializedTheTime.

Valeur de retour ​

true si input est strictement supérieure au seuil.

Voir aussi ​

Diffusé sous licence MIT.