/var/www/flurhymez/node_modules/collect.js/src/methods
Edit: /var/www/flurhymez/node_modules/collect.js/src/methods/intersect.js (317B)
'use strict';
module.exports = function intersect(values) {
let intersectValues = values;
if (values instanceof this.constructor) {
intersectValues = values.all();
}
const collection = this.items
.filter(item => intersectValues.indexOf(item) !== -1);
return new this.constructor(collection);
};