Skip to content

Instantly share code, notes, and snippets.

@sadick254
Last active June 18, 2018 03:22
Show Gist options
  • Save sadick254/eaf34bc5cd4a419d06d229ef885cf7b1 to your computer and use it in GitHub Desktop.
Save sadick254/eaf34bc5cd4a419d06d229ef885cf7b1 to your computer and use it in GitHub Desktop.
function validateEmail(email) {
// validate and return true or false
}
function isEmailValid(email) {
// validate and return true or false
}
function emailIsValid(email) {
// validate and return true or false
}
function isEmail(email) {
// validate and return true or false
}
function isValidEmail (email) {
// validate and return true or false
}
const email = "[email protected]";
if (validateEmail(email)) {
// do some stuff
}
if (isEmailValid(email)) {
// do some stuff
}
if (emailIsValid(email)) {
// do some stuff
}
if (isEmail(email)) {
// do some stuff
}
if (isValidEmail(email)) {
// do some stuff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment