Skip to content

Instantly share code, notes, and snippets.

@firstfu
Created November 29, 2019 05:39
Show Gist options
  • Save firstfu/b4254e5c82aab01e710d5b49482bc126 to your computer and use it in GitHub Desktop.
Save firstfu/b4254e5c82aab01e710d5b49482bc126 to your computer and use it in GitHub Desktop.
## 判断是否为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