mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Ensure baseIntersection doesn't transform array.
This commit is contained in:
@@ -2557,7 +2557,7 @@
|
|||||||
|
|
||||||
while (othIndex--) {
|
while (othIndex--) {
|
||||||
var array = arrays[othIndex];
|
var array = arrays[othIndex];
|
||||||
if (iteratee) {
|
if (othIndex && iteratee) {
|
||||||
array = arrayMap(array, function(value) { return iteratee(value); });
|
array = arrayMap(array, function(value) { return iteratee(value); });
|
||||||
}
|
}
|
||||||
caches[othIndex] = (iteratee || array.length >= 120) ? new SetCache(othIndex && array) : null;
|
caches[othIndex] = (iteratee || array.length >= 120) ? new SetCache(othIndex && array) : null;
|
||||||
|
|||||||
Reference in New Issue
Block a user