Created
January 22, 2019 13:07
-
-
Save gilesbradshaw/0c7131ee8a68aaff2450c1052b2d23e1 to your computer and use it in GitHub Desktop.
composes functions
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
export default (...functions) => | |
param => | |
functions | |
.reduce( | |
(acc, func) => func(acc), | |
param, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment