compose middleware
const compose = (...middlewares) =&gt;   (middlewares || []).reverse().reduce(     (dispatch,...
Tags: javascript, functional, compose