ampache_react/app/utils/common/array.js

4 lines
106 B
JavaScript
Raw Normal View History

2016-07-30 22:54:19 +02:00
Array.prototype.diff = function (a) {
return this.filter(function (i) {return a.indexOf(i) < 0;});
};