[0] → "0" → 0 → false == false
var array = [0]; array.toString = function () { return "1"; }; alert(array == false);