Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShivaBhattacharjee/KeyZen
/ sum
Function
sum
public/code/javascript/06_destructuring.js:16–18 ·
view source on GitHub ↗
(...args)
Source
from the content-addressed store, hash-verified
14
const
more = [...nums, 4, 5];
15
16
function
sum(...args) {
17
return
args.reduce((a, b) => a + b, 0);
18
}
19
20
console.log(sum(...more));
Callers
1
06_destructuring.js
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected