Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { apply, call, compose, project } from 'conductor'
- const reducer = compose(apply(call), project(mergeByAdding, getHomeworldName))
- // reducer({ Tatooine: 1 }, 3) == mergeByAdding({ Tatooine: 1 }, getHomeworldName(3))
- // == { Naboo: 1, Tatooine: 1 }
Add Comment
Please, Sign In to add comment