Pipe & Compose - Functional Light JS v2 from Front-End Masters

const pipe = (...funcs) => (...args) =>
funcs.reduce((args, func) => [func(...args)], args)[0];
pipe.js
// just reverse the funcs array...?
const compose = (...funcs) => (...args) =>
funcs.reverse().reduce((args, func) => [func(...args)], args)[0];
compose.js