* Creates a "_.pluck" style function, which returns the `key` value of a * given object. * * @static * @memberOf _ * @category Utilities * @param {string} key The name of the property to retrieve. * @returns {Function} Returns the new function. * @example
(key)
| 41168 | * // => [{ 'name': 'barney', 'age': 36 }, { 'name': 'fred', 'age': 40 }] |
| 41169 | */ |
| 41170 | function property(key) { |
| 41171 | return function(object) { |
| 41172 | return object[key]; |
| 41173 | }; |
| 41174 | } |
| 41175 | |
| 41176 | /** |
| 41177 | * Produces a random number between `min` and `max` (inclusive). If only one |