Last active
December 2, 2015 07:44
-
-
Save barrydobson/9cd25f72e9193ac773f3 to your computer and use it in GitHub Desktop.
Example of wrapping a source in multiple decorators
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
var result = decorator3(decorator2(decorator1(source(someArgs), someOtherArgs), moreArgs), evenMoreArgs, andThenSome); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment