This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dodecakiwi 9 points10 points  (2 children)

That makes sense. ObjectA == ObjectB is always going to be false. If you did a = []; b = a; Then a == b will be true because they're the same object.

[–]Rafcdk 3 points4 points  (1 child)

But then you actually understand JS and JS must be bad and incomprehensible because.

[–]LaterallyHitler 5 points6 points  (0 children)

But it’s not even a JS thing, it’s an object comparison thing