From 18b5cb24c2cf85242c40659d6b70eed1e7ae86b4 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 11 Oct 2015 23:27:49 -0700 Subject: [PATCH] Ensure `baseIntersection` doesn't transform `array`. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index 7da84bdc1..54605855d 100644 --- a/lodash.js +++ b/lodash.js @@ -2557,7 +2557,7 @@ while (othIndex--) { var array = arrays[othIndex]; - if (iteratee) { + if (othIndex && iteratee) { array = arrayMap(array, function(value) { return iteratee(value); }); } caches[othIndex] = (iteratee || array.length >= 120) ? new SetCache(othIndex && array) : null;