DEV Community

Discussion on: Función al curry

Collapse
 
jonrandy profile image
Jon Randy 🎖️

A nicer way to write the curried function:

const sumaCurry = valor1 => valor2 => valor1 + valor2;

sumaCurry(4)(2); // 6
Enter fullscreen mode Exit fullscreen mode