Created
June 5, 2017 12:44
-
-
Save cesardeazevedo/12a3c919e722eb1a4630ae3f908fcf3e to your computer and use it in GitHub Desktop.
Compose Factory with Ramda
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 compose = (...args) => (...factoryArgs) => { | |
return R.reduce((acc, f) => R.merge(f(...factoryArgs), acc), {}, args) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment