Module: validators

Members

(static, constant) isAgeValidFromBirthDate

Calculates age from a birthdate and checks if the age is valid (>= 18).

Source:

(static, constant) isEmailValid

Checks if the email is valid.

Source:

(static, constant) isNameValid

Checks if the name, first name, or city is valid (no special characters or digits).

Source:

(static, constant) isPasswordValid

Checks if the password is valid.

Source:

(static, constant) isPostalCodeValid

Checks if the postal code is in the French format.

Source: