Skip to content

lessThan ​

Vérifie qu'un TheDate est strictement inférieur à un seuil.

Exemple interactif ​

Syntaxe ​

Signature classique ​

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

Signature currifiée ​

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

Paramètres ​

  • threshold : Date limite.
  • input : TheDate ou SerializedTheDate.

Valeur de retour ​

true si input est strictement avant le seuil.

Voir aussi ​

Diffusé sous licence MIT.