Skip to content

greaterThan

La fonction greaterThan() vérifie si un TheDate est strictement supérieur à un seuil.

Exemple interactif

Syntaxe

Signature classique

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

Signature currifiée

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

Paramètres

  • threshold : Date de référence.
  • input : TheDate ou SerializedTheDate.

Valeur de retour

true si input est strictement supérieure au seuil.

Voir aussi

Diffusé sous licence MIT.