MCPcopy Create free account
hub / github.com/TruthHun/BookStack / reduce

Function reduce

static/word2md/mammoth.browser.js:8370–8376  ·  view source on GitHub ↗
(promises, fn, initialValue, _each)

Source from the content-addressed store, hash-verified

8368}
8369
8370function reduce(promises, fn, initialValue, _each) {
8371 if (typeof fn !== "function") {
8372 return apiRejection("expecting a function but got " + util.classString(fn));
8373 }
8374 var array = new ReductionPromiseArray(promises, fn, initialValue, _each);
8375 return array.promise();
8376}
8377
8378function gotAccum(accum) {
8379 this.accum = accum;

Callers 1

mammoth.browser.jsFile · 0.70

Calls 1

apiRejectionFunction · 0.70

Tested by

no test coverage detected