Skip to content

Instantly share code, notes, and snippets.

@tmazur
Created October 27, 2012 18:40
Show Gist options
  • Save tmazur/3965621 to your computer and use it in GitHub Desktop.
Save tmazur/3965621 to your computer and use it in GitHub Desktop.
Javascript: isNumeric
function isNumeric(input) {
return (input - 0) == input && input.length > 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment