parseFloat(\"NaN\")
returns \"NaN\", but
parseFloat(\"NaN\") == \"NaN\"
returns false. Now, that\'s probably a go
In ECMAScript 6 Object.is() is an enhancement of ===. This method accepts two arguments and returns true if the values are equivalent.And the two values are considered equivalent when they are of the same type and have the same value. That's the reason because console.log(Object.is(NaN, NaN))--> TRUE