mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Ensure baseIntersection doesn't transform array.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user