updeep-remeda/lib/reject.js
2017-04-18 17:55:46 -07:00

12 lines
273 B
JavaScript

import _reject from 'lodash/reject'
import wrap from './wrap'
function reject(predicate, collection) {
const result = _reject(collection, predicate)
const equal = collection.length === result.length
return equal ? collection : result
}
export default wrap(reject)