DEV Community

Discussion on: Currying in JavaScript

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!