isValidEmail
Validates if the provided email string is in a valid email format. The email must not be empty
, must contain the @
symbol, and must contain a valid domain
.
- import the method
import { isValidEmail } from "nodelpers";
- params
email: string;
- usage
isValidEmail("example@gmail.com"); // true