Initial commit
[yaffs-website] / node_modules / grunt-contrib-watch / node_modules / lodash / internal / baseValues.js
1 /**
2  * The base implementation of `_.values` and `_.valuesIn` which creates an
3  * array of `object` property values corresponding to the property names
4  * of `props`.
5  *
6  * @private
7  * @param {Object} object The object to query.
8  * @param {Array} props The property names to get values for.
9  * @returns {Object} Returns the array of property values.
10  */
11 function baseValues(object, props) {
12   var index = -1,
13       length = props.length,
14       result = Array(length);
15
16   while (++index < length) {
17     result[index] = object[props[index]];
18   }
19   return result;
20 }
21
22 module.exports = baseValues;