Skip to content

Instantly share code, notes, and snippets.

@anthify
Created May 2, 2019 07:18
Show Gist options
  • Save anthify/aa459f1980fa9293cd3aa9aeeeb48b80 to your computer and use it in GitHub Desktop.
Save anthify/aa459f1980fa9293cd3aa9aeeeb48b80 to your computer and use it in GitHub Desktop.
Pipe function
export default (...fns) => x => fns.reduce((v, f) => f(v), x);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment