Skip to content

Instantly share code, notes, and snippets.

@dminuoso dminuoso/foo.js
Last active Nov 7, 2017

What would you like to do?
const composeP2 = (f, g) => (val) => g(val).then((next) => f(next));
const composeP = (...funcs) => funcs.reverse().reduce(composeP2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.