MCPcopy
hub / github.com/lodash/lodash / property

Function property

lodash.js:16032–16034  ·  view source on GitHub ↗

* Creates a function that returns the value at `path` of a given object. * * @static * @memberOf _ * @since 2.4.0 * @category Util * @param {Array|string} path The path of the property to get. * @returns {Function} Returns the new accessor function. * @example

(path)

Source from the content-addressed store, hash-verified

16030 * // => [1, 2]
16031 */
16032 function property(path) {
16033 return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
16034 }
16035
16036 /**
16037 * The opposite of `_.property`; this method creates a function that returns

Callers 1

baseIterateeFunction · 0.85

Calls 4

isKeyFunction · 0.85
basePropertyFunction · 0.85
toKeyFunction · 0.85
basePropertyDeepFunction · 0.85

Tested by

no test coverage detected