Ensure _.pullAll works with the same value for array and values. [closes #2356]

This commit is contained in:
John-David Dalton
2016-05-19 19:47:20 -07:00
parent 5a67ecc142
commit f90c3f2483
2 changed files with 18 additions and 0 deletions

View File

@@ -3394,6 +3394,9 @@
length = values.length,
seen = array;
if (array === values) {
values = copyArray(values);
}
if (iteratee) {
seen = arrayMap(array, baseUnary(iteratee));
}