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\",\
Here's an alternative using underscore.js:
function inAButNotInB(A, B) { return _.filter(A, function (a) { return !_.contains(B, a); }); }