Improve description of Number.isNaN() #28173
Labels
closed: question
A user misinterpretation or support question. No action required.
Content:JS
JavaScript docs
MDN URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN
What specific section or headline is this issue about?
The second part of the first sentence in the page.
What information was incorrect, unhelpful, or incomplete?
The first sentence states the following:
The Number.isNaN() static method determines whether the passed value is the number value NaN, and returns false if the input is not of the Number type.
I think the second part of the sentence,
and returns false if the input is not of the Number type
, may be inaccurate (or confusing) because:NaN
is considered a Number type when checking its type usingtypeof
.NaN
as the input would returntrue
, notfalse
.What did you expect to see?
I think I expected to see something like,
The Number.isNaN() static method determines whether the passed value is the number value NaN, and returns false if the input is not NaN.
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
The text was updated successfully, but these errors were encountered: