title: Why if([]) is validated while [] == false in javascript?
body: <pre><code>if([] == false) alert('empty array is false');
  alert(+[]) // alert 0
  if([]) alert('empty array is true');
  </code></pre>
  
  <p>They both will run the alert</p>
  
  <p><a href="http://jsfiddle.net/roine/ZFDXY/">Demo</a></p>