Created
November 29, 2019 05:39
-
-
Save firstfu/b4254e5c82aab01e710d5b49482bc126 to your computer and use it in GitHub Desktop.
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
## 判断是否为isNaN | |
let n1 = NaN | |
let n2 = 'NaN' | |
console.log(Number.isNaN(n1)) | |
console.log(Number.isNaN(n2)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment