summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/cli-table2/node_modules/lodash/internal/basePropertyDeep.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/cli-table2/node_modules/lodash/internal/basePropertyDeep.js')
-rw-r--r--deps/npm/node_modules/cli-table2/node_modules/lodash/internal/basePropertyDeep.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/deps/npm/node_modules/cli-table2/node_modules/lodash/internal/basePropertyDeep.js b/deps/npm/node_modules/cli-table2/node_modules/lodash/internal/basePropertyDeep.js
new file mode 100644
index 0000000000..1b6ce40a17
--- /dev/null
+++ b/deps/npm/node_modules/cli-table2/node_modules/lodash/internal/basePropertyDeep.js
@@ -0,0 +1,19 @@
+var baseGet = require('./baseGet'),
+ toPath = require('./toPath');
+
+/**
+ * A specialized version of `baseProperty` which supports deep paths.
+ *
+ * @private
+ * @param {Array|string} path The path of the property to get.
+ * @returns {Function} Returns the new function.
+ */
+function basePropertyDeep(path) {
+ var pathKey = (path + '');
+ path = toPath(path);
+ return function(object) {
+ return baseGet(object, path, pathKey);
+ };
+}
+
+module.exports = basePropertyDeep;