DEV Community

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

Collapse
rolanddoda profile image
Roland Doda

I don't think that Object.is returns true if objects are equal:

var foo = { a: 1 };
var bar = { a: 1 };
Object.is(foo, bar); // false

Even empty arrays are not equal:
Object.is([], []); // false

Collapse
smetankajakub profile image
Jakub Smetanka Author

Thanks, my bad. I have edited it.