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.

at.js 559B

1234567891011121314151617181920212223
  1. var baseAt = require('./_baseAt'),
  2. flatRest = require('./_flatRest');
  3. /**
  4. * Creates an array of values corresponding to `paths` of `object`.
  5. *
  6. * @static
  7. * @memberOf _
  8. * @since 1.0.0
  9. * @category Object
  10. * @param {Object} object The object to iterate over.
  11. * @param {...(string|string[])} [paths] The property paths to pick.
  12. * @returns {Array} Returns the picked values.
  13. * @example
  14. *
  15. * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
  16. *
  17. * _.at(object, ['a[0].b.c', 'a[1]']);
  18. * // => [3, 4]
  19. */
  20. var at = flatRest(baseAt);
  21. module.exports = at;