title: Why does ",,," == Array(4) in Javascript?
body: <p>Boot up your interpreter/console and try the comparison</p>
  
  <pre><code>&gt; ",,," == Array(4)
  True
  </code></pre>
  
  <p>Why?  At first I thought maybe since you could think of ",,," as an array of four characters with a '\0' terminating slice, that might be why, but</p>
  
  <pre><code>&gt; "..." == Array(4)
  </code></pre>
  
  <p>Returns "False".  So... why?  I know it's some idiosyncratic bit of duck typing in Javascript, but just curious what underlines this behavior.  Gleaned this from Zed Shaw's excellent <a href="http://vimeo.com/43380467" rel="noreferrer">presentation here btw</a>.</p>