DEV Community

Discussion on: Currying in JavaScript

Collapse
 
pentacular profile image
pentacular

You know that you can just write like this, right? :)

const sum = a => b => c => a + b + c;
Enter fullscreen mode Exit fullscreen mode
Collapse
 
joela11y profile image
joel-a11y

And that's a perfect example of currying, imho. Without any funky bindings :D