Pipe & Compose - Functional Light JS v2 from Front-End MastersDecember 4th, 2017James DiGioiaconst pipe = (...funcs) => (...args) => funcs.reduce((args, func) => [func(...args)], args)[0];pipe.jsCopy to Clipboard// just reverse the funcs array...?const compose = (...funcs) => (...args) => funcs.reverse().reduce((args, func) => [func(...args)], args)[0];compose.jsCopy to Clipboard