DEV Community

Discussion on: Currying in JavaScript

Collapse
 
mrandreastoth profile image
Andreas Toth

It's all OK to explain what currying is, but without an explanation as to why one would want to go to all this trouble and extra complexity is necessary to support the article.

Collapse
 
ismailisimba profile image
Ismaili Simba

Thanks, it would be really cool to know if there's some real world case where this is a solution.

Collapse
 
johnkazer profile image
John Kazer

I often use it when I want to use a function in array.map but it takes more than one argument. Supply the initial argument(s) then use the returned function in map.

Thread Thread
 
ismailisimba profile image
Ismaili Simba

That makes a bunch of sense, thanks!