PATH:
usr
/
local
/
lib
/
node_modules
/
bower
/
lib
/
node_modules
/
inquirer
/
node_modules
/
lodash
/
object
var baseGet = require('../internal/baseGet'), toPath = require('../internal/toPath'); /** * Gets the property value at `path` of `object`. If the resolved value is * `undefined` the `defaultValue` is used in its place. * * @static * @memberOf _ * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path of the property to get. * @param {*} [defaultValue] The value returned if the resolved value is `undefined`. * @returns {*} Returns the resolved value. * @example * * var object = { 'a': [{ 'b': { 'c': 3 } }] }; * * _.get(object, 'a[0].b.c'); * // => 3 * * _.get(object, ['a', '0', 'b', 'c']); * // => 3 * * _.get(object, 'a.b.c', 'default'); * // => 'default' */ function get(object, path, defaultValue) { var result = object == null ? undefined : baseGet(object, toPath(path), (path + '')); return result === undefined ? defaultValue : result; } module.exports = get;
[-] functions.js
[edit]
[-] forOwn.js
[edit]
[-] omit.js
[edit]
[-] transform.js
[edit]
[-] forInRight.js
[edit]
[+]
..
[-] findKey.js
[edit]
[-] findLastKey.js
[edit]
[-] mapValues.js
[edit]
[-] valuesIn.js
[edit]
[-] forOwnRight.js
[edit]
[-] extend.js
[edit]
[-] has.js
[edit]
[-] keysIn.js
[edit]
[-] merge.js
[edit]
[-] pick.js
[edit]
[-] methods.js
[edit]
[-] get.js
[edit]
[-] values.js
[edit]
[-] pairs.js
[edit]
[-] forIn.js
[edit]
[-] mapKeys.js
[edit]
[-] defaultsDeep.js
[edit]
[-] invert.js
[edit]
[-] create.js
[edit]
[-] result.js
[edit]
[-] defaults.js
[edit]
[-] set.js
[edit]
[-] assign.js
[edit]
[-] keys.js
[edit]