How would you make this work?

add(2, 5); // 7
add(2)(5); // 7

Solution

Edit this solution on GitHub
const add = a => b => a + b