mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Ensure _.pullAt ignores non-index values.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user