diff options
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.js | 19 |
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; |