mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Bump to v4.11.2.
This commit is contained in:
@@ -3,6 +3,7 @@ import castPath from './_castPath';
|
||||
import isIndex from './_isIndex';
|
||||
import isKey from './_isKey';
|
||||
import isObject from './isObject';
|
||||
import toKey from './_toKey';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.set`.
|
||||
@@ -23,7 +24,7 @@ function baseSet(object, path, value, customizer) {
|
||||
nested = object;
|
||||
|
||||
while (nested != null && ++index < length) {
|
||||
var key = path[index];
|
||||
var key = toKey(path[index]);
|
||||
if (isObject(nested)) {
|
||||
var newValue = value;
|
||||
if (index != lastIndex) {
|
||||
|
||||
Reference in New Issue
Block a user