Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. // Example is from an hyperapp action
  2. const ReceiveItems = (state, items) => ({
  3. ...state,
  4. items: items.reduce((items, item) => ({...items, [item.id]: item}), state.items)
  5. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement