Last active
November 14, 2020 22:00
-
-
Save pinalbhatt/9672790 to your computer and use it in GitHub Desktop.
Javascript isNumeric() function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
isNumeric function in Javascript | |
*/ | |
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
https://api.jquery.com/jQuery.isNumeric/