Skip to content

Instantly share code, notes, and snippets.

@jdittmarCodeSnippets
Last active December 17, 2015 03:19
Show Gist options
  • Save jdittmarCodeSnippets/5541906 to your computer and use it in GitHub Desktop.
Save jdittmarCodeSnippets/5541906 to your computer and use it in GitHub Desktop.
JavaScript: isNumeric
// http://stackoverflow.com/questions/18082/validate-numbers-in-javascript-isnumeric
function isNumeric(n) { return !isNaN(parseFloat(n)) && isFinite(n); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment