mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Bump to v4.17.1.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import castPath from './_castPath.js';
|
||||
import isFunction from './isFunction.js';
|
||||
import isKey from './_isKey.js';
|
||||
import toKey from './_toKey.js';
|
||||
|
||||
/**
|
||||
@@ -33,7 +32,7 @@ import toKey from './_toKey.js';
|
||||
* // => 'default'
|
||||
*/
|
||||
function result(object, path, defaultValue) {
|
||||
path = isKey(path, object) ? [path] : castPath(path);
|
||||
path = castPath(path, object);
|
||||
|
||||
var index = -1,
|
||||
length = path.length;
|
||||
|
||||
Reference in New Issue
Block a user