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:
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 ) < 0;
} );
alert(arrayA);
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?