Skip to content

Instantly share code, notes, and snippets.

@Matt-Jensen
Last active May 5, 2018 20:14
Show Gist options
  • Save Matt-Jensen/b96ef7d7da5aa915b46952a95fdfce62 to your computer and use it in GitHub Desktop.
Save Matt-Jensen/b96ef7d7da5aa915b46952a95fdfce62 to your computer and use it in GitHub Desktop.
export default (...fns) => x => fns.reduce((v, f) => f(v), x);
// pipe(double, add1)(2) === 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment