title: Very strange behaviour of parseInt and map
body: <p>Take a look at this experiment conducted on jsconsole.com</p>
  <pre><code>&gt; parseInt(&quot;00&quot;)
  0
  &gt; [&quot;00&quot;].map(parseInt)
  Array (1)[ 0 ]
  &gt; [&quot;123&quot;, &quot;00&quot;].map(parseInt)
  Array (2)[ 123,NaN ]
  &gt; [&quot;00&quot;, &quot;123&quot;].map(parseInt)
  Array (2)[ 0,NaN ]
  </code></pre>
  <p>I've stumbled upon this by trying to do some date-time parsing. The problem seemed to be the fact that I didn't specify which integer base I want. Using <code>parseInt(x, 10)</code> solves my problem but could someone explain to me how <code>[&quot;00&quot;].map(parseInt)</code> and <code>[&quot;123&quot;, &quot;00&quot;].map(parseInt)</code> could possibly differ for the value of <code>&quot;00&quot;</code>? I might be missing something extremely obvious here, but if I'm not this would mean that there's something wrong with <code>Array.prototype.map</code> or <code>parseInt</code> or both.</p>
  <p>Thanks in advance.</p>