summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/lodash/internal/baseGet.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/lodash/internal/baseGet.js')
-rw-r--r--deps/npm/node_modules/lodash/internal/baseGet.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/deps/npm/node_modules/lodash/internal/baseGet.js b/deps/npm/node_modules/lodash/internal/baseGet.js
deleted file mode 100644
index ad9b1ee11b..0000000000
--- a/deps/npm/node_modules/lodash/internal/baseGet.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var toObject = require('./toObject');
-
-/**
- * The base implementation of `get` without support for string paths
- * and default values.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array} path The path of the property to get.
- * @param {string} [pathKey] The key representation of path.
- * @returns {*} Returns the resolved value.
- */
-function baseGet(object, path, pathKey) {
- if (object == null) {
- return;
- }
- if (pathKey !== undefined && pathKey in toObject(object)) {
- path = [pathKey];
- }
- var index = 0,
- length = path.length;
-
- while (object != null && index < length) {
- object = object[path[index++]];
- }
- return (index && index == length) ? object : undefined;
-}
-
-module.exports = baseGet;