UI for Zipcoin Blue

_baseValues.js 534B

1234567891011121314151617181920
  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;