Last active
August 29, 2015 14:17
-
-
Save mattyod/16c68053eb42b4ead19b to your computer and use it in GitHub Desktop.
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 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