zipObjectDeep

最后更新于:2022-04-01 23:59:34

## zipObjectDeep + [link](./zipObjectDeep "Link to this entry.") + [source](https://github.com/lodash/lodash/blob/4.5.0正式版/lodash.src.js#L7105 "View in source.") + [npm](https://www.npmjs.com/package/lodash.zipobjectdeep "See the npm package.") ``` _.zipObjectDeep([props=[]], [values=[]]) ``` 这个方法类似 `_.zipObject`,除了它支持属性路径。 This method is like `_.zipObject` except that it supports property paths. ### 参数 1. [props=[]] (Array) 属性名 2. [values=[]] (Array) 属性值 ### 返回值 (Object) 返回新的对象 ### 示例 ``` _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]); // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } } ```
';