(initState, handlers)
| 4 | * @return {Reducer} |
| 5 | */ |
| 6 | export default function createReducer(initState, handlers) { |
| 7 | return function reducer(state = initState, action) { |
| 8 | const handler = handlers[action.type] |
| 9 | return handler ? handler(state, action) : state |
| 10 | } |
| 11 | } |
no outgoing calls
no test coverage detected