mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Bump to v4.4.0.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
var baseToPath = require('./_baseToPath'),
|
||||
var baseCastPath = require('./_baseCastPath'),
|
||||
get = require('./get'),
|
||||
isFunction = require('./isFunction'),
|
||||
isKey = require('./_isKey'),
|
||||
@@ -34,7 +34,7 @@ var baseToPath = require('./_baseToPath'),
|
||||
*/
|
||||
function result(object, path, defaultValue) {
|
||||
if (!isKey(path, object)) {
|
||||
path = baseToPath(path);
|
||||
path = baseCastPath(path);
|
||||
var result = get(object, path);
|
||||
object = parent(object, path);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user