Created
October 19, 2017 11:59
-
-
Save davidostermann/69e7f744bc63b113cf86e8e7257dca92 to your computer and use it in GitHub Desktop.
pipe function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const _pipe = (f, g) => (...args) => g(f(...args)) | |
export const pipe = (...fcts) => fcts.reduce(_pipe) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment