Created
June 26, 2017 11:19
-
-
Save icodesido/d33dbc93008b223e43fb862b5024add9 to your computer and use it in GitHub Desktop.
Number type check
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
| var isNumeric = function (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