Created
June 6, 2018 17:33
-
-
Save suissa/5b257bcb20f74047cd48b6d4b2ad2fae to your computer and use it in GitHub Desktop.
Compose ES6
This file contains 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 = (...functions) => data => | |
functions.reduceRight((value, func) => func(value), data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment