js柯里化

function curr(fn,...args){
     retuen args.length<fn.length?(...arguments)=>curr(fn,...args,...arguments):fn(...args)
}

  

posted @ 2019-07-30 11:36  dawn~monster  阅读(107)  评论(0编辑  收藏  举报