JS Currying
Currying: Splitting up function that takes multiple arguments into a sequence of functions that each take its individual argument.
Example 1:
Generally, we write:
function addition(x, y, z) {
return x + y + z;
}
addition(1, 2, 3);
> 6
Currying:
...
vkglobal.hashnode.dev2 min read