MCPcopy Create free account
hub / github.com/75team/SublimeJS / reduce

Function reduce

SublimeJS/js/when.js:733–753  ·  view source on GitHub ↗

* Traditional reduce function, similar to `Array.prototype.reduce()`, but * input may contain promises and/or values, and reduceFunc * may return either a value or a promise, *and* initialValue may * be a promise for the starting value. * * @param {Array|Promise} promise array or promise f

(promise, reduceFunc /*, initialValue */)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

whenFunction · 0.85

Tested by

no test coverage detected