DEV Community

Discussion on: The most repeated questions I met with on job interviews (part 1)

Collapse
 
sfiquet profile image
Sylvie Fiquet

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.

Collapse
 
smetankajakub profile image
Jakub Smetanka

You are right, thanks, I have edited text