Skip to content

Instantly share code, notes, and snippets.

@ryands17
Last active January 20, 2019 07:16
Show Gist options
  • Save ryands17/7dce88bca3802ddb773085edda38b2df to your computer and use it in GitHub Desktop.
Save ryands17/7dce88bca3802ddb773085edda38b2df to your computer and use it in GitHub Desktop.
const compose = (...fns) => x => fns.reduceRight((y, f) => f(y), x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment