MCPcopy
hub / github.com/mouredev/hello-javascript / partialSum

Function partialSum

Intermediate/00-advanced-functions.js:108–112  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

106// Funciones parciales
107
108function partialSum(a) {
109 return function (b, c) {
110 return sum(a, b, c)
111 }
112}
113
114const sumWith = partialSum(4)
115console.log(sumWith(2, 3))

Callers 1

Calls 1

sumFunction · 0.70

Tested by

no test coverage detected