Guest User

Untitled

a guest
May 26th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. import { apply, call, compose, project } from 'conductor'
  2.  
  3. const reducer = compose(apply(call), project(mergeByAdding, getHomeworldName))
  4. // reducer({ Tatooine: 1 }, 3) == mergeByAdding({ Tatooine: 1 }, getHomeworldName(3))
  5. // == { Naboo: 1, Tatooine: 1 }
Add Comment
Please, Sign In to add comment