Skip to content

Instantly share code, notes, and snippets.

@Matt-Jensen
Last active May 5, 2018 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Matt-Jensen/7436a5718285b9f81f52493099711710 to your computer and use it in GitHub Desktop.
Save Matt-Jensen/7436a5718285b9f81f52493099711710 to your computer and use it in GitHub Desktop.
export default (...fns) => x => fns.reduceRight((v, f) => f(v), x)
// compose(double, add1)(2) === 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment