* 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)
| 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 |
no test coverage detected