Change var endIndex to lastIndex for source consistency.

This commit is contained in:
jdalton
2015-05-22 22:09:09 -07:00
parent 69f51896c9
commit 9ef5c5d639

View File

@@ -10108,13 +10108,13 @@
var index = -1,
length = path.length,
endIndex = length - 1,
lastIndex = length - 1,
nested = object;
while (nested != null && ++index < length) {
var key = path[index];
if (isObject(nested)) {
if (index == endIndex) {
if (index == lastIndex) {
nested[key] = value;
} else if (nested[key] == null) {
nested[key] = isIndex(path[index + 1]) ? [] : {};