title: Javascript shift() for Objects
body: <p>So I want to take my list and add the first two (0 &amp; 1) items together.</p>
  
  <p>I tried this: </p>
  
  <pre><code>        total=foo.shift();
          foo[0]=total
  </code></pre>
  
  <p>And got this:</p>
  
  <p>Uncaught TypeError: Object [object Array] has no method 'split'</p>
  
  <p>I then tried to simply call "foo" and output it; same error.
  This leads me to think that it is not in a form I can work with without some workaround.</p>
  
  <p>Any help would be much appreciated. Thank you.</p>