Last active
August 29, 2015 14:19
-
-
Save jpwsutton/a1295d76e18791c12480 to your computer and use it in GitHub Desktop.
Javascript Is something a number?
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
function isNumber(object){ | |
return ! isNaN (object-0) && object !== null && object !== "" && object !== false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment