Object.is() function is pretty much identical to the old "strict equality operator" (
===), with two notable differences:
- NaN = NaN resolves to true (i.e.
Object.is(NaN, NaN) // true);
- Negative zero = positive zero resolves to false (i.e.
Object.is(-0, +0) // false).
Personally, I agree with 1) and not 2), so guess there still isn't an equality check which is intuitive to me 😂 Getting close though!