Class

EmailValidator

EmailValidator(errorMessage)

Constructor

# new EmailValidator(errorMessage)

Parameters:
Name Type Default Description
errorMessage string That is not a valid email

View Source model/Validations.js, line 263

Methods

# hasErrors(value) → {string|undefined}

returns the error message, or nothing if is valid

.

returns the error message, or nothing if is valid

Parameters:
Name Type Description
value

the value

View Source model/Validations.js, line 273

the errors or nothing

string | undefined