Skip to content

Instantly share code, notes, and snippets.

@OutThisLife
Created August 9, 2018 17:54
Show Gist options
  • Save OutThisLife/5fbbcfbae13d0f1f14c3a4559f7454b5 to your computer and use it in GitHub Desktop.
Save OutThisLife/5fbbcfbae13d0f1f14c3a4559f7454b5 to your computer and use it in GitHub Desktop.
const compose = (...fns) => fns.reduce((f, g) => (...args) => f(g(...args)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment