| DIR:/proc/thread-self/cwd/bright.medisavehealthcarebd.com/node_modules/collect.js/src/methods/ |
| Current File : //proc/thread-self/cwd/bright.medisavehealthcarebd.com/node_modules/collect.js/src/methods/diff.js |
'use strict';
module.exports = function diff(values) {
let valuesToDiff;
if (values instanceof this.constructor) {
valuesToDiff = values.all();
} else {
valuesToDiff = values;
}
const collection = this.items.filter(item => valuesToDiff.indexOf(item) === -1);
return new this.constructor(collection);
};
|