4.17.11
3.10.1
2.4.2
1.3.1
_.zipObjectDeep([props=[]], [values=[]])
This method is like _.zipObject
except that it supports property paths.
Since
4.1.0
Arguments
argument
[props=[]]
[values=[]]
type
Array
Array
description
The property identifiers.
The property values.
Returns
(array)
Example
_.zipObjectDeep(
["a.b[0].c", "a.b[1].d"],
[1, 2]
);
// => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
_.zipObjectDeep(["a.b[0].c", "a.b[1].d"], [1, 2]);
// => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }