import * as flatten from 'array-flatten' ; import { EventDefinition } from 'redux-beacon' ; const combineEvents = ( ... eventDefs ) => ( action , prevState , nextState ) => flatten ( eventDefs . map ( eventDef => eventDef ( action , prevState , nextState ) ) ) ; export default combineEvents ;