javascript gotcha: empty list to boolean conversion

javascript

Solution

The === operator is your friend. Never use the == operator; it will bite you, as you can see.

Problem

Why both ``` [] == false ``` and ``` ![] == false ``` are true?

Original source