r/tinycode • • Dec 13 '15

97 character curry function in js

https://twitter.com/randomegui/status/676184909317341186
16 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/Penguinsoccer Dec 14 '15

Yep.

let curry=f=>function n(...a){return a.length<f.length?n.bind(null,...a):f.bind(null,...a)()}()