What does [NaN].includes(NaN) return?
Explanation
Array includes uses SameValueZero comparison, under which NaN matches NaN, so the result is true. Assuming the strict-equality NaN rule here applies the wrong comparison semantics to this method.
Array includes uses SameValueZero comparison, under which NaN matches NaN, so the result is true. Assuming the strict-equality NaN rule here applies the wrong comparison semantics to this method.