my-idlers/node_modules/collect.js/dist/methods/reject.js

7 lines
151 B
JavaScript
Raw Normal View History

'use strict';
module.exports = function reject(fn) {
return new this.constructor(this.items).filter(function (item) {
return !fn(item);
});
};