diff options
Diffstat (limited to 'node_modules/lodash/result.js')
-rw-r--r-- | node_modules/lodash/result.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/lodash/result.js b/node_modules/lodash/result.js index a02481029..eae12500b 100644 --- a/node_modules/lodash/result.js +++ b/node_modules/lodash/result.js @@ -39,8 +39,8 @@ function result(object, path, defaultValue) { // Ensure the loop is entered when path is empty. if (!length) { - object = undefined; length = 1; + object = undefined; } while (++index < length) { var value = object == null ? undefined : object[toKey(path[index])]; |