MIF_E31222707/node_modules/collect.js/dist/methods/diffUsing.js

10 lines
290 B
JavaScript

'use strict';
module.exports = function diffUsing(values, callback) {
var collection = this.items.filter(function (item) {
return !(values && values.some(function (otherItem) {
return callback(item, otherItem) === 0;
}));
});
return new this.constructor(collection);
};