Module: curry

Methods

(inner) curry(f) → {function}

Returns a curried equivalent of the provided function.
Parameters:
Name Type Description
f function
Source:
Returns:
Type
function
Example
var multiplyFunction = function(x,y) { return x * y }
var curried = curry(multiplyFunction)
curried(2)(3) //6