We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0beaae commit 1a8e5ccCopy full SHA for 1a8e5cc
src/handleAction.js
@@ -26,7 +26,7 @@ export default function handleAction(type, reducer = identity, defaultState) {
26
27
return (state = defaultState, action) => {
28
const { type: actionType } = action;
29
- if (!actionType || !types.includes(toString(actionType))) {
+ if (!actionType || types.indexOf(toString(actionType)) === -1) {
30
return state;
31
}
32
0 commit comments