Node.js examples for Array:Set Operation
Returns the difference of two arrays
Array.prototype.diff = function (B) { return this.filter(function (a) { return B.indexOf(a) < 0; }); };