🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## at + [link](./at "Link to this entry.") + [source](https://github.com/lodash/lodash/blob/4.5.0正式版/lodash.src.js#L10820 "View in source.") + [npm](https://www.npmjs.com/package/lodash.at "See the npm package.") ``` _.at(object, [paths]) ``` 根据 `object` 的路径获取值为数组。 ### 参数 1. object (Object) 要遍历的对象 2. [paths] (...(string|string[]) 要获取的对象的元素路径,单独指定或者指定在数组中 ### 返回值 (Array) 返回选中值的数组 ### 示例 ``` var object = { 'a': [{ 'b': { 'c': 3 } }, 4] }; _.at(object, ['a[0].b.c', 'a[1]']); // => [3, 4] _.at(['a', 'b', 'c'], 0, 2); // => ['a', 'c'] ```