title: Removing one array from another array, using this particular code
body: <p>I have the following array, which holds other arrays (they are in fact coordinates of a html5 canvas).</p>
  
  <pre><code>var crossesPos = [[317, 193], [110, 334], [390, 347], [281, 222], [307, 384], [329, 366], [230, 104], [276, 156], [173, 330], [227, 100], [397, 261], [341, 389], [233, 223], [261, 350], [267, 286]]
  </code></pre>
  
  <p>Lest say:</p>
  
  <pre><code>x = 317;
  y = 193;
  </code></pre>
  
  <p><strong>In the following function, how can I remove the array [317,193] from crossesPos?</strong></p>
  
  <pre><code>function checkForCrosses(x,y){
      var position;
      jQuery.each(crossesPos, function(){
          position = this;
          if(x == position[0] &amp;&amp; y == position[1]){
              // how do I remove the array [317,193] from crossesPos?
          }
      });
  }
  </code></pre>
  
  <p>Ty!</p>