mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Change var endIndex to lastIndex for source consistency.
This commit is contained in:
@@ -10108,13 +10108,13 @@
|
|||||||
|
|
||||||
var index = -1,
|
var index = -1,
|
||||||
length = path.length,
|
length = path.length,
|
||||||
endIndex = length - 1,
|
lastIndex = length - 1,
|
||||||
nested = object;
|
nested = object;
|
||||||
|
|
||||||
while (nested != null && ++index < length) {
|
while (nested != null && ++index < length) {
|
||||||
var key = path[index];
|
var key = path[index];
|
||||||
if (isObject(nested)) {
|
if (isObject(nested)) {
|
||||||
if (index == endIndex) {
|
if (index == lastIndex) {
|
||||||
nested[key] = value;
|
nested[key] = value;
|
||||||
} else if (nested[key] == null) {
|
} else if (nested[key] == null) {
|
||||||
nested[key] = isIndex(path[index + 1]) ? [] : {};
|
nested[key] = isIndex(path[index + 1]) ? [] : {};
|
||||||
|
|||||||
Reference in New Issue
Block a user