Created
April 16, 2015 16:44
-
-
Save caiogondim/7ef07923d9891e597210 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isValidEmail(email) { | |
var input = document.createElement('input') | |
input.type = 'email' | |
input.value = email | |
return input.validity.valid | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment