Currying

Currying

Its a common practice for javascript developers to pass all the arguments needed in a function at once. This can get bulky as the number of arguments increases. Partial application is a more advanced and elegant way to pass multiple arguments one at a time. The code above is just one way of writing partial applications and there is a special name for this kind of partial application. Its called "Currying"

要查看或添加评论,请登录

社区洞察

其他会员也浏览了