Created
March 6, 2017 03:36
-
-
Save Underdoge/d616a5f7add873ee2ffd0913b64f2397 to your computer and use it in GitHub Desktop.
variableName
This file contains hidden or 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 variableName(name) { | |
return /^([a-z]|[A-Z]|_)([a-z]|[A-Z]|_|\d)*$/.test(name); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment