I\'m looking for a good algorithm to get all the elements in one array that are not elements in another array. So given these arrays:
var x = [\"a\",\"b\",\
Late answer with the new ECMA5 javascript:
var x = ["a","b","c","t"]; var y = ["d","a","t","e","g"]; myArray = y.filter( function( el ) { return x.indexOf( el ) < 0; });