MCPcopy Create free account
hub / github.com/Faheem-Khan97/javascript-coding-problems-with-theory / sum1

Function sum1

currying.js:9–9  ·  view source on GitHub ↗
(a,b)

Source from the content-addressed store, hash-verified

7
8// A simple example --> transforming sum(a,b) --> sum(a)(b)
9const sum1 = (a,b) => a+b;
10
11const addition1 = sum1(3, 4);
12console.log(addition1); // 7

Callers 1

currying.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected