I\'m looking for a pure function, to modify my immutable state object. The original state given as parameter must stay untouched. This is especially useful when working with fra
Removing item from an array, just use filter ;)
CASE 'REMOVE_ITEM_SUCCESS': let items = state.items.filter(element => element._id !== action.id); return { ...state, items }