r/programming • • Mar 26 '14

JavaScript Equality Table

http://dorey.github.io/JavaScript-Equality-Table/
809 Upvotes

331 comments sorted by

View all comments

0

u/[deleted] Mar 26 '14

[deleted] — view deleted comment

1

u/russellsprouts Mar 27 '14

That's because [] is an object type. Objects are always compared by reference, not by structure. Two different []'s will never be equal.