(promises, fn, initialValue, _each)
| 8368 | } |
| 8369 | |
| 8370 | function 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 | |
| 8378 | function gotAccum(accum) { |
| 8379 | this.accum = accum; |
no test coverage detected