talawa-api / Exports / setup/isValidEmail
Module: setup/isValidEmail
Table of contents
Functions
Functions
isValidEmail
▸ isValidEmail(email
): boolean
The function isValidEmail
checks if a given email address is valid according to a specific pattern.
Parameters
Name | Type | Description |
---|---|---|
email | string | The email parameter is a string that represents an email address. |
Returns
boolean
a boolean value. It returns true if the email passed as an argument matches the specified pattern, and false otherwise.