PATH:
usr
/
local
/
lib
/
node_modules
/
bower
/
lib
/
node_modules
/
inquirer
/
node_modules
/
lodash
/
utility
var baseProperty = require('../internal/baseProperty'), basePropertyDeep = require('../internal/basePropertyDeep'), isKey = require('../internal/isKey'); /** * Creates a function that returns the property value at `path` on a * given object. * * @static * @memberOf _ * @category Utility * @param {Array|string} path The path of the property to get. * @returns {Function} Returns the new function. * @example * * var objects = [ * { 'a': { 'b': { 'c': 2 } } }, * { 'a': { 'b': { 'c': 1 } } } * ]; * * _.map(objects, _.property('a.b.c')); * // => [2, 1] * * _.pluck(_.sortBy(objects, _.property(['a', 'b', 'c'])), 'a.b.c'); * // => [1, 2] */ function property(path) { return isKey(path) ? baseProperty(path) : basePropertyDeep(path); } module.exports = property;
[-] iteratee.js
[edit]
[-] noop.js
[edit]
[-] method.js
[edit]
[+]
..
[-] callback.js
[edit]
[-] property.js
[edit]
[-] times.js
[edit]
[-] matchesProperty.js
[edit]
[-] propertyOf.js
[edit]
[-] attempt.js
[edit]
[-] range.js
[edit]
[-] identity.js
[edit]
[-] constant.js
[edit]
[-] matches.js
[edit]
[-] uniqueId.js
[edit]
[-] methodOf.js
[edit]
[-] mixin.js
[edit]