1 回复
自动柯里化,否则每次加参数调一次curry,还得自己记着传了几个参 https://gist.github.com/nighca/686f3d34fb1f9127bc1f
var addThreeArgs = currilize(function(a, b, c){ return a + b + c; })
addThreeArgs(1, 2, 3); // 6
addThreeArgs(1)(2, 3); // 6
addThreeArgs(1)(2)(3); // 6