mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Bump to v4.11.2.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import castPath from './_castPath';
|
||||
import isKey from './_isKey';
|
||||
import toKey from './_toKey';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.get` without support for default values.
|
||||
@@ -16,7 +17,7 @@ function baseGet(object, path) {
|
||||
length = path.length;
|
||||
|
||||
while (object != null && index < length) {
|
||||
object = object[path[index++]];
|
||||
object = object[toKey(path[index++])];
|
||||
}
|
||||
return (index && index == length) ? object : undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user