title: Why is the last element of my array being replaced with a 0
body: <p>I have a function: </p>
  
  <pre><code>function splitToDigits(n) {
      var digits = ("" + n).split("").map(function(item) {
          return parseInt(item, 10);
      });
      console.log(digits);
  }
  
  console.log(splitToDigits(123456784987654321));
  </code></pre>
  
  <p>This is returning <code>digits = [1,2,3,4,5,6,7,8,4,9,8,7,6,5,4,3,2,0]</code>.</p>
  
  <p>Any idea why the last element is <code>0</code>?  I noticed that when I delete 2 elements from the array it acts normally. Thanks for all the great answers! :)</p>