mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Bump to v4.11.2.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
define(['./_castPath', './_isKey'], function(castPath, isKey) {
|
||||
define(['./_castPath', './_isKey', './_toKey'], function(castPath, isKey, toKey) {
|
||||
|
||||
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
|
||||
var undefined;
|
||||
@@ -18,7 +18,7 @@ define(['./_castPath', './_isKey'], function(castPath, isKey) {
|
||||
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