mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Ensure _.intersectionBy doesn't treat iteratee as an empty array.
This commit is contained in:
@@ -5457,6 +5457,8 @@
|
|||||||
|
|
||||||
if (iteratee === last(mapped)) {
|
if (iteratee === last(mapped)) {
|
||||||
iteratee = undefined;
|
iteratee = undefined;
|
||||||
|
} else {
|
||||||
|
mapped.pop();
|
||||||
}
|
}
|
||||||
return (mapped.length && mapped[0] === arrays[0])
|
return (mapped.length && mapped[0] === arrays[0])
|
||||||
? baseIntersectionBy(mapped, getIteratee(iteratee))
|
? baseIntersectionBy(mapped, getIteratee(iteratee))
|
||||||
|
|||||||
Reference in New Issue
Block a user