MCPcopy 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

14const more = [...nums, 4, 5];
15
16function sum(...args) {
17 return args.reduce((a, b) => a + b, 0);
18}
19
20console.log(sum(...more));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected