Skip to content

Instantly share code, notes, and snippets.

@Underdoge
Created March 6, 2017 03:36
Show Gist options
  • Save Underdoge/d616a5f7add873ee2ffd0913b64f2397 to your computer and use it in GitHub Desktop.
Save Underdoge/d616a5f7add873ee2ffd0913b64f2397 to your computer and use it in GitHub Desktop.
variableName
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