We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Code
isNaN(0) isNaN('120') isNaN(new Date())
Expected behavior: isNaN should also take string and Date and pretty much everything, probably any See here in the examples section
string
Date
any
Actual behavior: It only takes number https://github.com/Microsoft/TypeScript/blob/master/lib/lib.es5.d.ts#L53
number
The text was updated successfully, but these errors were encountered:
It's by design, see #3947, #4002, #11414, #13227, #15173, #16427.
Sorry, something went wrong.
@eseliger please do read the instructions and search for existing issues before logging new ones
No branches or pull requests
Code
Expected behavior:
isNaN should also take
string
andDate
and pretty much everything, probablyany
See here in the examples section
Actual behavior:
It only takes
number
https://github.com/Microsoft/TypeScript/blob/master/lib/lib.es5.d.ts#L53The text was updated successfully, but these errors were encountered: