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:
@@ -2,7 +2,8 @@ var assignValue = require('./_assignValue'),
|
||||
castPath = require('./_castPath'),
|
||||
isIndex = require('./_isIndex'),
|
||||
isKey = require('./_isKey'),
|
||||
isObject = require('./isObject');
|
||||
isObject = require('./isObject'),
|
||||
toKey = require('./_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