Last active
December 4, 2018 21:15
-
-
Save liuxd/0ddf4d8d1280d2604de534bd39427ba1 to your computer and use it in GitHub Desktop.
[is_numeric() in JS]
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 t1 = 100, t2 = '100', t3 = 'test'; | |
console.log(isNaN(t1)); // false | |
console.log(isNaN(t2)); // false | |
console.log(isNaN(t3)); // true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment