From 3efc4dd7c7197ccbbefe39d2fabfce7b3c68f3f8 Mon Sep 17 00:00:00 2001 From: Nowell Strite Date: Wed, 25 Jul 2018 20:25:32 -0400 Subject: [PATCH] IE11 does not support Array.prototype.includes https://caniuse.com/#feat=array-includes --- src/handleAction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handleAction.js b/src/handleAction.js index cfefa024..c9d66f9b 100644 --- a/src/handleAction.js +++ b/src/handleAction.js @@ -26,7 +26,7 @@ export default function handleAction(type, reducer = identity, defaultState) { return (state = defaultState, action) => { const { type: actionType } = action; - if (!actionType || !types.includes(toString(actionType))) { + if (!actionType || types.indexOf(toString(actionType)) === -1) { return state; }