4 lines
106 B
JavaScript
4 lines
106 B
JavaScript
Array.prototype.diff = function (a) {
|
|
return this.filter(function (i) {return a.indexOf(i) < 0;});
|
|
};
|