Last active
August 29, 2015 14:23
-
-
Save robinweser/fc69ba8ce287afd9c34f to your computer and use it in GitHub Desktop.
number validation
This file contains 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
/* | |
Validates if a value actually is a number | |
*/ | |
function isNumeric(value) { | |
return !isNaN(parseFloat(value)) && isFinite(value); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment