I still get bitten by
> [] == []
< false
sometimes. And that's with two equal signs, not three!
> [] == []
< false
sometimes. And that's with two equal signs, not three!
Python says True.
Ruby says true.
JS says false.
And otherwise, JS is quite lenient with not interpreting the input like you describe it when using "==":
> [] == 0
< true
> [] == false
< true