title: Splicing a string indexed array in JavaScript
body: <p>I have a string indexed array that I would like to remove an item from. </p>
  
  <p>Consider the following example code:</p>
  
  <pre><code>    var arr = new Array();       
      arr[0] = "Zero";
      arr[1] = "One";
      arr[2] = "Two";
      arr.splice(1, 1);
  
      for (var index in arr)
          document.writeln(arr[index] + " ");
  
      //This will write: Zero Two
  
      var arr = new Array();
      arr["Zero"] = "Zero";
      arr["One"] = "One";
      arr["Two"] = "Two";
  
      arr.splice("One", 1); //This does not work
      arr.splice(1, 1); //Neither does this
  
      for (var index in arr)
          document.writeln(arr[index] + " ");
  
      //This will write: Zero One Two
  </code></pre>
  
  <p>How do I remove "One" from the second example like I did in the first?</p>