summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/lodash/_baseGet.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/node_modules/lodash/_baseGet.js')
-rw-r--r--tools/eslint/node_modules/lodash/_baseGet.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/eslint/node_modules/lodash/_baseGet.js b/tools/eslint/node_modules/lodash/_baseGet.js
index d11de17bf3..0956af551a 100644
--- a/tools/eslint/node_modules/lodash/_baseGet.js
+++ b/tools/eslint/node_modules/lodash/_baseGet.js
@@ -1,4 +1,4 @@
-var baseToPath = require('./_baseToPath'),
+var baseCastPath = require('./_baseCastPath'),
isKey = require('./_isKey');
/**
@@ -10,7 +10,7 @@ var baseToPath = require('./_baseToPath'),
* @returns {*} Returns the resolved value.
*/
function baseGet(object, path) {
- path = isKey(path, object) ? [path + ''] : baseToPath(path);
+ path = isKey(path, object) ? [path] : baseCastPath(path);
var index = 0,
length = path.length;