source: imaps-frontend/node_modules/lodash-es/at.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 557 bytes
Line 
1import baseAt from './_baseAt.js';
2import flatRest from './_flatRest.js';
3
4/**
5 * Creates an array of values corresponding to `paths` of `object`.
6 *
7 * @static
8 * @memberOf _
9 * @since 1.0.0
10 * @category Object
11 * @param {Object} object The object to iterate over.
12 * @param {...(string|string[])} [paths] The property paths to pick.
13 * @returns {Array} Returns the picked values.
14 * @example
15 *
16 * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
17 *
18 * _.at(object, ['a[0].b.c', 'a[1]']);
19 * // => [3, 4]
20 */
21var at = flatRest(baseAt);
22
23export default at;
Note: See TracBrowser for help on using the repository browser.