Skip to content

less

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

Exemple interactif

Syntaxe

Signature classique

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

Signature currifiée

typescript
function less<
	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 avant ou égale à threshold.

Voir aussi

Diffusé sous licence MIT.