DEV Community

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

rolanddoda profile image
Roland Doda

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

var foo = { a: 1 };
var bar = { a: 1 };, bar); // false

Even empty arrays are not equal:[], []); // false

smetankajakub profile image
Jakub Smetanka Author

Thanks, my bad. I have edited it.