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
_.isNumber(NaN) === true #1373
Comments
Duplicate of a bunch of issues: https://github.com/jashkenas/underscore/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aclosed+nan+isnumber |
These methods don't validate the input they just determine if the value is of a specific tag. |
But it is very unexpectedly. NaN is abbreviation of Not a Number. So isNumber(NotANumber) === true seems crazy. |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Feature or bug?
The text was updated successfully, but these errors were encountered: