Created
November 8, 2015 12:13
-
-
Save Mati365/0355c410c8c48c5f2244 to your computer and use it in GitHub Desktop.
Underscore partial with context in typescript
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
_.mixin({ | |
partialBind: (fn: Function, context: any, ...args: any[]): any => { | |
return _.bind(_.partial(fn, ...args), context); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment