Bump to v4.17.2.

This commit is contained in:
John-David Dalton
2016-11-15 22:20:52 -08:00
parent 76b7758fc7
commit 0c27706e89
9 changed files with 26 additions and 54 deletions

View File

@@ -1,4 +1,4 @@
define(['./_castPath', './_isIndex', './last', './_parent', './_toKey'], function(castPath, isIndex, last, parent, toKey) {
define(['./_baseUnset', './_isIndex'], function(baseUnset, isIndex) {
/** Used for built-in method references. */
var arrayProto = Array.prototype;
@@ -25,14 +25,8 @@ define(['./_castPath', './_isIndex', './last', './_parent', './_toKey'], functio
var previous = index;
if (isIndex(index)) {
splice.call(array, index, 1);
}
else {
var path = castPath(index, array),
object = parent(array, path);
if (object != null) {
delete object[toKey(last(path))];
}
} else {
baseUnset(array, index);
}
}
}