ampache_react/app/utils/common/array.js

4 lines
106 B
JavaScript

Array.prototype.diff = function (a) {
return this.filter(function (i) {return a.indexOf(i) < 0;});
};