Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
/*
2
Function currying is transforming a JavaScript
function
from callable
3
as sum(a,b) to callable as sum(a)(b) and producing the exact same result.
4
Look at a simple example code below.
Callers
nothing calls this directly
Calls
4
sum1
Function · 0.85
sum2
Function · 0.85
curry
Function · 0.85
sum
Function · 0.70
Tested by
no test coverage detected