7 lines
151 B
JavaScript
7 lines
151 B
JavaScript
|
'use strict';
|
||
|
|
||
|
module.exports = function reject(fn) {
|
||
|
return new this.constructor(this.items).filter(function (item) {
|
||
|
return !fn(item);
|
||
|
});
|
||
|
};
|