title: How can i remove an array from a multidimensional array in javascript?
body: <p>So i currently have a multidimensional array with a ridiculous amount of arrays inside created by a function, in this structure</p>
  
  <pre><code>0: Array[10]
      0: Array[5]
      1: Array[5]
      2: Array[5]
      3: Array[5]
      4: Array[5]
      5: Array[5]
      6: Array[5]
      7: Array[5]
      8: 335.74
      9: 10341
  1: Array[10]
  2: Array[10]
  3: Array[10]
  .... and so on.
  </code></pre>
  
  <p>since the function that creates this array is a function that calculates all possible combinations of the 8 arrays that are within (the 2 last ones are appended afterwards) the array is VERY long so i would like to filter some of them out. Here im trying to remove all arrays which has a value above 10000 on the last element, if it does remove its whole array.</p>
  
  <pre><code>for (i = 0; i &lt; comb.length; ++i) {
      if (comb[i][9] &gt; 10000) {
          comb.splice([i],1);
      }
  }
  </code></pre>
  
  <p>so in the first example the spot nr. 9 is above 10000, so it should splice/remove its parent.
  Currently this just removes parts of the array or nothing at all..</p>
  
  <p>Any ideas? Thanks :)</p>