8000 The issue that _.isNumber(NaN) returns true. VERSION 4.17.21 · Issue #5981 · lodash/lodash · GitHub
[go: up one dir, main page]

Skip to content

The issue that _.isNumber(NaN) returns true. VERSION 4.17.21 #5981

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

Open
Taylorzhao opened this issue Apr 18, 2025 · 1 comment · May be fixed by #5982
Open

The issue that _.isNumber(NaN) returns true. VERSION 4.17.21 #5981

Taylorzhao opened this issue Apr 18, 2025 · 1 comment · May be fixed by #5982

Comments

@Taylorzhao
Copy link
Image

As shown in the figure, when using the isNumber function, passing NaN as the parameter returns true.

@Taylorzhao Taylorzhao changed the title The issue that _.isNumber(NaN) returns true. The issue that _.isNumber(NaN) returns true. VERSION 4.17.21 Apr 18, 2025
@frontman-git
Copy link

isNumber - Lodash documentation

The _.isNumber method checks whether a value is of the Number type. To exclude Infinity, -Infinity, and NaN, the official documentation recommends using _.isFinite instead.

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

Successfully merging a pull request may close this issue.

2 participants
0