src/Configuration.js
function initEnhancers(routes) {
    invariant(routes.filter(actionConfig => !actionConfig.driverInstance).length===0, 'Routes must have instantiated drivers');

    return routes
        .filter(actionConfig => actionConfig.driverInstance.middleware)
        .map(actionConfig => actionConfig.driverInstance.middleware());
}
function initEnhancers(routes) {
    invariant(routes.filter(actionConfig => !actionConfig.driverInstance).length===0, 'Routes must have instantiated drivers');

    return routes
        .filter(actionConfig => actionConfig.driverInstance.middleware)
        .map(actionConfig => actionConfig.driverInstance.middleware());
}
function initEnhancers ( routes ) { invariant ( routes . filter ( actionConfig => ! actionConfig . driverInstance ) . length === 0 , 'Routes must have instantiated drivers' ) ; return routes . filter ( actionConfig => actionConfig . driverInstance . middleware ) . map ( actionConfig => actionConfig . driverInstance . middleware ( ) ) ; }
Get a list of action configurations which have a middleware defined and
return an array of those redux state enhancers functions

@param {ActionConfig} actionConfigs
Get a list of action configurations which have a middleware defined and return an array of those redux state enhancers functions