From 32d6a04107729ea6b1d1040b0cf0f77e06aa77e5 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 11 Oct 2015 23:29:23 -0700 Subject: [PATCH] Use `array.pop()` instead of `array.length--` in `_.zipWith`. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index 0898a13f2..930f2a008 100644 --- a/lodash.js +++ b/lodash.js @@ -6389,7 +6389,7 @@ var length = arrays.length, iteratee = length > 1 ? arrays[length - 1] : undefined; - iteratee = typeof iteratee == 'function' ? (arrays.length--, iteratee) : undefined; + iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined; return unzipWith(arrays, iteratee); });