Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_baseValues.js 534B

12345678910111213141516171819
  1. var arrayMap = require('./_arrayMap');
  2. /**
  3. * The base implementation of `_.values` and `_.valuesIn` which creates an
  4. * array of `object` property values corresponding to the property names
  5. * of `props`.
  6. *
  7. * @private
  8. * @param {Object} object The object to query.
  9. * @param {Array} props The property names to get values for.
  10. * @returns {Object} Returns the array of property values.
  11. */
  12. function baseValues(object, props) {
  13. return arrayMap(props, function(key) {
  14. return object[key];
  15. });
  16. }
  17. module.exports = baseValues;