Skip to content

Instantly share code, notes, and snippets.

@mattyod
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattyod/16c68053eb42b4ead19b to your computer and use it in GitHub Desktop.
Save mattyod/16c68053eb42b4ead19b to your computer and use it in GitHub Desktop.
var demethodise = function (fn) {
var curry = [].slice.call(arguments, 1);
return function () {
var args = curry.concat([].slice.call(arguments, 1));
return fn.apply(arguments[0], args);
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment