mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +00:00
Bump to v4.17.1.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
define(['./_castPath', './_isIndex', './_isKey', './last', './_parent', './_toKey'], function(castPath, isIndex, isKey, last, parent, toKey) {
|
||||
define(['./_castPath', './_isIndex', './last', './_parent', './_toKey'], function(castPath, isIndex, last, parent, toKey) {
|
||||
|
||||
/** Used for built-in method references. */
|
||||
var arrayProto = Array.prototype;
|
||||
@@ -26,17 +26,14 @@ define(['./_castPath', './_isIndex', './_isKey', './last', './_parent', './_toKe
|
||||
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