Skip to content

Instantly share code, notes, and snippets.

@paulakreuger
Created April 23, 2014 07:25
Show Gist options
  • Save paulakreuger/11205542 to your computer and use it in GitHub Desktop.
Save paulakreuger/11205542 to your computer and use it in GitHub Desktop.
Check if is number
/*
==CHECK IF IS NUMBER
-----------------------------------------------------*/
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