Creating an ES6ish Compose in Javascript
Drew Tipson

I just thought to do this same coding exercise and I wrote:

const compose = (…fns) => (…args) => fns.reduce((acc, cur) => {
.. if (acc === undefined) return cur.apply(undefined, args)
.. else return cur(acc)
}, undefined);

Your recursive solution is much more elegant 👍👍👍

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.