UNPKG

conductor

Version:

A modern & functional JavaScript utility library

5 lines (3 loc) 178 B
const filter = predicate => reducer => (acc, value, key, collection) => predicate(value, key, collection) ? reducer(acc, value, key, collection) : acc module.exports = filter