Skip to content

Commit 1a8e5cc

Browse files
nowellstimche
authored andcommitted
IE11 does not support Array.prototype.includes (#313)
https://caniuse.com/#feat=array-includes
1 parent a0beaae commit 1a8e5cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handleAction.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function handleAction(type, reducer = identity, defaultState) {
2626

2727
return (state = defaultState, action) => {
2828
const { type: actionType } = action;
29-
if (!actionType || !types.includes(toString(actionType))) {
29+
if (!actionType || types.indexOf(toString(actionType)) === -1) {
3030
return state;
3131
}
3232

0 commit comments

Comments
 (0)