Created
March 26, 2017 04:06
-
-
Save dewey92/d986e44c9b2d4233f4c8811b57fa6d91 to your computer and use it in GitHub Desktop.
compose
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) => x => fns.reduceRight((acc, fn) => fn(acc), x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment