Skip to content

isNaN expecting a number argument #21065

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

Closed
shaharkazaz opened this issue Jan 8, 2018 · 5 comments
Closed

isNaN expecting a number argument #21065

shaharkazaz opened this issue Jan 8, 2018 · 5 comments
Labels
Duplicate An existing issue was already created

Comments

@shaharkazaz
Copy link

TypeScript Version: 2.6.2

Code from lib.es6.d.ts

/**
  * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
  * @param number A numeric value.
  */
declare function isNaN(number: number): boolean;

Expected behavior:
The function should get any type and not only numbers.

Actual behavior:
I get an error when passing a string.

@jcalz
Copy link
Contributor

jcalz commented Jan 8, 2018

Duplicate of #19153 among many, many others. Did you read the contributing guidelines as requested before you opened this issue?

@shaharkazaz
Copy link
Author

Searched for: "is:issue is:open isNaN" but didn't see any matches, sorry for the duplicate, next time I'll search without filters 👍

@jcalz
Copy link
Contributor

jcalz commented Jan 8, 2018

Yeah, I think "make sure to search closed issues also" should be made explicit in those instructions.

@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Jan 8, 2018
@RyanCavanaugh
Copy link
Member

Didn't realize we were linking people to the terrible Issues Tab search. Sorry about that

@zpdDG4gta8XKpMCd
Copy link

the instructions to search before posting need to be in the template of the issue

@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

4 participants