Ensure _.intersectionBy doesn't treat iteratee as an empty array.

This commit is contained in:
John-David Dalton
2015-10-11 23:28:41 -07:00
parent 18b5cb24c2
commit 6bff374e91

View File

@@ -5457,6 +5457,8 @@
if (iteratee === last(mapped)) {
iteratee = undefined;
} else {
mapped.pop();
}
return (mapped.length && mapped[0] === arrays[0])
? baseIntersectionBy(mapped, getIteratee(iteratee))