Ensure _.pullAt ignores non-index values.

This commit is contained in:
John-David Dalton
2014-05-07 00:12:12 -07:00
parent f09ae1e2e3
commit 32167b45ce
2 changed files with 20 additions and 5 deletions

View File

@@ -2983,8 +2983,8 @@
indexes.sort(baseCompareAscending);
while (length--) {
var index = indexes[length];
if (index != previous) {
var index = parseFloat(indexes[length]);
if (index != previous && index > -1 && index % 1 == 0) {
var previous = index;
splice.call(array, index, 1);
}