diff --git a/src/reduce.js b/src/reduce.js index 76f31eb07..4220b58c1 100644 --- a/src/reduce.js +++ b/src/reduce.js @@ -33,7 +33,7 @@ util.inherits(ReductionPromiseArray, PromiseArray); ReductionPromiseArray.prototype._gotAccum = function(accum) { if (this._eachValues !== undefined && - this._eachValues !== undefined && + this._eachValues !== null && accum !== INTERNAL) { this._eachValues.push(accum); }