mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-13 20:37:48 +00:00
Bump to v4.17.1.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
var castPath = require('./_castPath'),
|
||||
isIndex = require('./_isIndex'),
|
||||
isKey = require('./_isKey'),
|
||||
last = require('./last'),
|
||||
parent = require('./_parent'),
|
||||
toKey = require('./_toKey');
|
||||
@@ -31,17 +30,14 @@ function basePullAt(array, indexes) {
|
||||
if (isIndex(index)) {
|
||||
splice.call(array, index, 1);
|
||||
}
|
||||
else if (!isKey(index, array)) {
|
||||
var path = castPath(index),
|
||||
else {
|
||||
var path = castPath(index, array),
|
||||
object = parent(array, path);
|
||||
|
||||
if (object != null) {
|
||||
delete object[toKey(last(path))];
|
||||
}
|
||||
}
|
||||
else {
|
||||
delete array[toKey(index)];
|
||||
}
|
||||
}
|
||||
}
|
||||
return array;
|
||||
|
||||
Reference in New Issue
Block a user