* The base implementation of `_.values` and `_.valuesIn` which creates an * array of `object` property values corresponding to the property names * of `props`. * * @private * @param {Object} object The object to query. * @param {Array} props The property names to get va
(object, props)
| 4274 | * @returns {Object} Returns the array of property values. |
| 4275 | */ |
| 4276 | function baseValues(object, props) { |
| 4277 | var index = -1, |
| 4278 | length = props.length, |
| 4279 | result = Array(length); |
| 4280 | |
| 4281 | while (++index < length) { |
| 4282 | result[index] = object[props[index]]; |
| 4283 | } |
| 4284 | return result; |
| 4285 | } |
| 4286 | |
| 4287 | /** |
| 4288 | * The base implementation of `_.dropRightWhile`, `_.dropWhile`, `_.takeRightWhile`, |