zuomeng

Results 5 comments of zuomeng

> In order to be clearly usable, your plugin needs a documentation of options, methods, events, and examples of use. Yep, that's what I mean

![image](https://user-images.githubusercontent.com/28486975/99367024-5f3e9400-28f4-11eb-86ad-b854c6feb7d9.png)

第三版的代码是不是有bug呢,我试了一个稍微长一点的例子: ```javascript var _ = {} var ary = curry(function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) { return [a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z] }) console.log(ary(1,_,_)(_)(5,6,7,8,9,10)(11,12,13,14)(15,_,_,18,_)(20,21,22,_)(24,25,26)(2,3,4)(16)(17,19)(23)) ``` 结果输出是不对的,node下: ```javascript [Function] ``` chrome下: ```javascript ƒ () { var _args = args.slice(0), _holes...

少了一行,抱歉😄 ```javascript // hole为传入的占位符 function curry(fn, hole) { const __len = fn.length let args = []; return function h() { // 先把参数放入args数组 args = [...args, ...Array.from(arguments)] // 如果长度超过原有函数参数列表长度,表示有占位 let holeNum...

哦哦,看了几组执行结果才发现这个占位是边执行边填补的,我把他理解成从超出参数列表列表长度之后才开始填补的了,谢谢指教🙏