Bump to v4.17.1.

This commit is contained in:
John-David Dalton
2016-11-14 20:56:46 -08:00
parent b1ff59b3ea
commit 95f47b6d19
18 changed files with 48 additions and 44 deletions

View File

@@ -1,6 +1,5 @@
import castPath from './_castPath.js';
import isIndex from './_isIndex.js';
import isKey from './_isKey.js';
import last from './last.js';
import parent from './_parent.js';
import toKey from './_toKey.js';
@@ -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;