var dispatch = function(action) { stateModifiers[action.type] && stateModifiers[action.type](action) return action }