UNPKG

chain-able

Version:

interfaces that describe their intentions.

18 lines (17 loc) 533 B
// @TODO // const reduce = require('./entries') // const indexValueBy = property => x => { // const obj = {} // Object.keys(x).map(key => obj[property] = x) // } // const indexPropBy = key => {} // const pluckValues = keys => {} // const spreadValues = keys = {} // into arr in order? // const orderBy = keys => {} // order // // module.exports = (key, valueProp) => x => { // const reduced = reduce(x) // const indexed = indexPropBy(key)(reduced) // const mapped = indexValueBy(valueProp)(indexed) // return mapped // }