-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider support partial function application #92
Comments
Just to clarify, nothing too complex just: function partial(f){
var args = Array.prototype.slice.call(arguments, 1);
return function(){
return f.apply(null, args.concat(Array.prototype.slice.call(arguments)));
};
} |
Per the reasons described in #98 (this is not a general purpose module) I'm going to decline on this one. |
I see, didn't know about that. Thanks for clarifying! |
@dschenkelman couldn't you achieve that with either |
@arb +1 for |
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions. |
What do you think about including a function to allow partial application of arguments?
I think it could be a useful addition and can PR it if you would like to.
Example use case: currently I'm working on a plug-in where I need pass parameters when using
async.series
:I'd like to do something like the following without having to include lodash or underscore:
Thoughts?
The text was updated successfully, but these errors were encountered: