Skip to content

Instantly share code, notes, and snippets.

@cdmz
Created January 26, 2016 01:24
Show Gist options
  • Save cdmz/40bf5fc81053d45d4653 to your computer and use it in GitHub Desktop.
Save cdmz/40bf5fc81053d45d4653 to your computer and use it in GitHub Desktop.
isNumber javascript
function isNumber(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