MCPcopy
hub / github.com/lodash/lodash / propertyOf

Function propertyOf

lodash.js:16057–16061  ·  view source on GitHub ↗

* The opposite of `_.property`; this method creates a function that returns * the value at a given path of `object`. * * @static * @memberOf _ * @since 3.0.0 * @category Util * @param {Object} object The object to query. * @returns {Function} Returns the new a

(object)

Source from the content-addressed store, hash-verified

16055 * // => [2, 0]
16056 */
16057 function propertyOf(object) {
16058 return function(path) {
16059 return object == null ? undefined : baseGet(object, path);
16060 };
16061 }
16062
16063 /**
16064 * Creates an array of numbers (positive and/or negative) progressing from

Callers

nothing calls this directly

Calls 1

baseGetFunction · 0.85

Tested by

no test coverage detected