Skip to content

Instantly share code, notes, and snippets.

@mgirouard
Created August 18, 2010 16:20
Show Gist options
  • Save mgirouard/535302 to your computer and use it in GitHub Desktop.
Save mgirouard/535302 to your computer and use it in GitHub Desktop.
function curry (method, scope, params) {
scope = scope || window;
params = params || [];
return function () {
return method.apply(scope, params);
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment