title: How to splice an array out of a nested array - javascript
body: <p>I am attempting to splice a nested array out of its parent array. Consider the following array. <code>items.splice(0,1)</code> should give me the first nested array([1,2]), however it seems to give me the first nested array, <em>still</em> nested inside of an array:</p>
  
  <pre><code>var items = [[1,2],[3,4],[5,6]];
  
  var item = items.splice(0,1); // should slice first array out of items array
  
  console.log(item); //should log [1,2], instead logs [[1,2]]
  </code></pre>
  
  <p>However it seems to return the needed array (first item), in another array. And I'm not able to get the full array unless I do <code>item[0]</code>. What in the world am I missing!?</p>