curry
1.6.0


  curry(arg...) -> Function

Partially applies the function, returning a function with one or more arguments already “filled in.”

Function#curry works just like Function#bind without the initial scope argument.

Examples


String.prototype.splitOnSpaces = String.prototype.split.curry(" ");
"foo bar baz thud".splitOnSpaces(); //-> ["foo", "bar", "baz", "thud"]