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?
javascript
The === operator is your friend. Never use the == operator; it will bite you, as you can see.
Why both ``` [] == false ``` and ``` ![] == false ``` are true?