1. ECMA-262
13th Edition (June 2022)
The ECMAScript® Language Specification.
Section 7.2.14
Strict Equality Comparison (===): In step 1.c.i
it states
"If x is NaN
return false." This confirms why value === Number.NaN is incorrect.
Section 7.2.15
SameValue (Object.is): In step 1.c
it states
"If x is NaN and y is NaN
return true." This validates Object.is(value
NaN).
Section 21.1.2.4
Number.isNaN(number): This section defines the function's behavior
stating it returns true if the argument is a Number value that is NaN
and false otherwise.
2. Mozilla Developer Network (MDN) Web Docs
Number.isNaN():
"In comparison to the global isNaN() function
Number.isNaN() doesn't suffer from the problem of forcefully converting the parameter to a number. It is usually the more robust option." This supports option E.
3. Mozilla Developer Network (MDN) Web Docs
Object.is():
Under the "Description" section
it explicitly lists Object.is(NaN
NaN) returning true as a key difference from the === operator
which returns false. This supports option B.