gistlib
index.tsxfunction multiply(a) { return function(b) { return a * b; }; } // Example of using currying function const multiplyByTwo = multiply(2); console.log(multiplyByTwo(4)); // Output: 8 189 chars10 lines
function multiply(a) { return function(b) { return a * b; }; } // Example of using currying function const multiplyByTwo = multiply(2); console.log(multiplyByTwo(4)); // Output: 8
gistlibby LogSnag