* Creates an array composed of the own enumerable property values of `object`. * * @static * @memberOf _ * @category Objects * @param {Object} object The object to inspect. * @returns {Array} Returns an array of property values. * @example * * _.values({
(object)
| 38036 | * // => [1, 2, 3] (property order is not guaranteed across environments) |
| 38037 | */ |
| 38038 | function values(object) { |
| 38039 | var index = -1, |
| 38040 | props = keys(object), |
| 38041 | length = props.length, |
| 38042 | result = Array(length); |
| 38043 | |
| 38044 | while (++index < length) { |
| 38045 | result[index] = object[props[index]]; |
| 38046 | } |
| 38047 | return result; |
| 38048 | } |
| 38049 | |
| 38050 | /*--------------------------------------------------------------------------*/ |
| 38051 |