This method is like fromPairs except that it accepts two arrays, one of property identifiers and one of corresponding values.
fromPairs
The property identifiers.
The property values.
Returns the new object.
5.3.0
[[unzip]],[[unzipWith]],[[zip]],[[zipObjectDeep]],[[zipWith]]
zipObject(['a', 'b'], [1, 2])// => { 'a': 1, 'b': 2 } Copy
zipObject(['a', 'b'], [1, 2])// => { 'a': 1, 'b': 2 }
This method is like
fromPairs
except that it accepts two arrays, one of property identifiers and one of corresponding values.