Created
March 11, 2016 17:28
-
-
Save bcardarella/4aa396037f930c842c30 to your computer and use it in GitHub Desktop.
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
myFunc(context) { | |
fun3(fun2(fun1(context))); | |
} |
_.flow(fn1, fn2, fn3)(context)
http://www.scottmessinger.com/2015/05/19/functional-programming-with-lodash/
Sadly, there isn't a working version of this as far as I know and it hasn't climbed the ranks of the proposal process: https://github.com/mindeavor/es-pipeline-operator
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create a pipe function and pass each function as an argument?