* Creates a function which 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 *
(path)
| 12801 | * // => [1, 2] |
| 12802 | */ |
| 12803 | function property(path) { |
| 12804 | return isKey(path) ? baseProperty(path) : basePropertyDeep(path); |
| 12805 | } |
| 12806 | |
| 12807 | /** |
| 12808 | * The opposite of `_.property`; this method creates a function which returns |
no test coverage detected