Skip to content

Instantly share code, notes, and snippets.

@pinalbhatt
Last active November 14, 2020 22:00
Show Gist options
  • Save pinalbhatt/9672790 to your computer and use it in GitHub Desktop.
Save pinalbhatt/9672790 to your computer and use it in GitHub Desktop.
Javascript isNumeric() function
/*
isNumeric function in Javascript
*/
function isNumeric(n) {
return !isNaN(parseFloat(n)) && isFinite(n);
}
@metrue
Copy link

metrue commented Mar 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment