UNPKG

foop

Version:

interfaces that describe their intentions.

21 lines (15 loc) 358 B
const toList = (a, b, c, d) => ([a, b, c, d]) const obj = (one, two, three, four) => { return {one, two, three, four} } const arr = (one, two, three, four) => { return [one, two, three, four] } const converge = require('./converge') const T = () => true const result = converge(toList, [ obj, arr, T ])(0, 1, 2, 'four') // console.log(result)