A wiseman once said : "If you can not explain it, you do not understand it". A few years ago, when I had searched for a job as a student I went thr...
For further actions, you may consider blocking this person and/or reporting abuse
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
Nice Article Jakub...
Bte, sometimes I use === to compare obj ref
Very Insightful Blog!
Short and useful! Great article!
Short and to the point. Really helpful article, thanks!
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
Thanks, my bad. I have edited it.
Nice iniciative bro, most of my interviews i encounter with these questions.
Glad to hear that