Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alizhdanov/5b4c1c6ef49f365db98ffa10e71f0911 to your computer and use it in GitHub Desktop.
Save alizhdanov/5b4c1c6ef49f365db98ffa10e71f0911 to your computer and use it in GitHub Desktop.
Strict checking if it's number
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