From 6bff374e9155ff9ca7156707cb68624b685e2ed5 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 11 Oct 2015 23:28:41 -0700 Subject: [PATCH] Ensure `_.intersectionBy` doesn't treat `iteratee` as an empty array. --- lodash.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lodash.js b/lodash.js index 54605855d..0898a13f2 100644 --- a/lodash.js +++ b/lodash.js @@ -5457,6 +5457,8 @@ if (iteratee === last(mapped)) { iteratee = undefined; + } else { + mapped.pop(); } return (mapped.length && mapped[0] === arrays[0]) ? baseIntersectionBy(mapped, getIteratee(iteratee))