* 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)
| 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 |