title: How to remove an array from a multidimensional array if it exists in another multidimensional array?
body: <p>I have two  multidimensional arrays and need to remove all the arrays from array A that exist in array B. I've tried it this way with no luck:</p>
  
  <pre><code>var arrayA = [[0,1], [2,0], [0,3], [4,0], [0,5]];
  
  var arrayB = [[0,1], [0,3]];
  
  arrayA = arrayA.filter( function( el ) {
    return arrayB.indexOf( el ) &lt; 0;
  } );
  
  alert(arrayA);
  </code></pre>
  
  <p>This works when the elements in arrayA and arrayB are single values and but when they are arrays. Not sure what I am doing wrong?</p>