From 6daea95c9b04755246bb103e39cb5446634737b2 Mon Sep 17 00:00:00 2001 From: Benjamin Gruenbaum Date: Mon, 29 Aug 2016 19:24:45 +0300 Subject: [PATCH] Update reduce.js --- src/reduce.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }