title: Why does splice return a string instead of an array?
body: <p>I'm trying to splice array <em>two</em> from the two-dimensional array <em>arr</em>.</p>
  
  <pre><code>var one = ["a","b"];  
  var two = ["c","d"];  
  var thr = ["e","f"];  
  var arr = [one,two,thr];
  </code></pre>
  
  <p>Here are my two unsuccessful attempts:  </p>
  
  <p>1)</p>
  
  <pre><code>var rem = arr.splice(1,1);  
  alert(rem[0]);  
  // This alerts the entire array as one long string "c,d".
  // The expected behavior is "c" (index 0 of the returned array _rem_).
  </code></pre>
  
  <p>2) </p>
  
  <pre><code>var rem = arr[1].splice(0);  
  alert(arr);  
  // The array _rem_ is now correct, but _arr_ is left with an empty index: "a,b,,e,f".
  </code></pre>
  
  <hr>
  
  <p>I have a less than ideal workaround, but I'm hoping to accomplish this with one function.   </p>
  
  <pre><code>var test = arr[1].slice(0);  
  arr.splice(1,1);
  </code></pre>