Javascript WTF

A site where we can all share in those little WTF moments we enjoy with Javascript


Identical arrays are not equal?!

> ['a', 'b'] !== ['a', 'b']
true

> ['a', 'b'] != ['a', 'b']
true

> ['a', 'b'] == ['a', 'b']
false

Sureā€¦ Those are clearly not the same ;)