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