Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const enableBatch = (reducer) => (state, action) => {
- return Array.isArray(action)
- ? action.reduce(reducer, state)
- : reducer(state, action);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement