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

File currying.js

currying.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/*
2Function currying is transforming a JavaScript function from callable
3as sum(a,b) to callable as sum(a)(b) and producing the exact same result.
4Look at a simple example code below.

Callers

nothing calls this directly

Calls 4

sum1Function · 0.85
sum2Function · 0.85
curryFunction · 0.85
sumFunction · 0.70

Tested by

no test coverage detected