mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 16:17:50 +00:00
Bump to v3.8.0.
This commit is contained in:
@@ -21,9 +21,9 @@ function baseGet(object, path, pathKey) {
|
||||
length = path.length;
|
||||
|
||||
while (object != null && ++index < length) {
|
||||
var result = object = object[path[index]];
|
||||
object = object[path[index]];
|
||||
}
|
||||
return result;
|
||||
return (index && index == length) ? object : undefined;
|
||||
}
|
||||
|
||||
export default baseGet;
|
||||
|
||||
Reference in New Issue
Block a user