krzysztof-w
8/23/2016 - 11:18 PM

test.js

[action.type, matchedKey, "_"].reduce( (acc, a) =>
  acc || handlers.hasOwnProperty(a) && handlers[a](state, action)
, null) || state