Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Example is from an hyperapp action
- const ReceiveItems = (state, items) => ({
- ...state,
- items: items.reduce((items, item) => ({...items, [item.id]: item}), state.items)
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement