Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number.isNaN 与 globalThis.isNaN 有何区别 #68

Open
nmsn opened this issue Nov 30, 2022 · 1 comment
Open

Number.isNaN 与 globalThis.isNaN 有何区别 #68

nmsn opened this issue Nov 30, 2022 · 1 comment

Comments

@nmsn
Copy link
Owner

nmsn commented Nov 30, 2022

如题

@nmsn
Copy link
Owner Author

nmsn commented Nov 30, 2022

shfshanyue/Daily-Question#640

globalThis.isNaN 会对参数进行强制转换后判断是不是 NaN,而 Number.isNaN 不会对输入的参数进行强制转换

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant