I was surprised by your assertion that you can use Object.is to compare two objects instead of === so I looked it up on MDN. Like ===, Object.is compares references. It will return false for two distinct objects with the same properties.
The only difference between Object.is() and === is in their treatment of signed zeroes and NaNs.
I was surprised by your assertion that you can use
Object.is
to compare two objects instead of===
so I looked it up on MDN. Like===
,Object.is
compares references. It will returnfalse
for two distinct objects with the same properties.You are right, thanks, I have edited text