Ensure baseIntersection doesn't transform array.

This commit is contained in:
John-David Dalton
2015-10-11 23:27:49 -07:00
parent 04e8ca771b
commit 18b5cb24c2

View File

@@ -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;