Created
July 21, 2018 21:30
-
-
Save JamieDixon/52647e494e572f9253e4fa49dfa63556 to your computer and use it in GitHub Desktop.
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 = (...fns) => function _compose(arg, funcs = [...fns], next = funcs.pop()) { | |
return funcs.length ? _compose(next(arg), funcs) : next(arg); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment