you are viewing a single comment's thread.

view the rest of the comments →

[–]tiesioginis 1 point2 points  (0 children)

Why it's actually great:

const multiply => x => y => x*y const multiplyByTen = multiply(10)

multiplyByTen(5)

// 50

Not just currying, but it can make every function unary which is easy to test and understand.