This method is like zip except that it accepts an array of grouped elements and creates an array regrouping the elements to their pre-zip configuration.
zip
5.3.0
unzipWith,zip,zipObject,zipObjectDeep,zipWith
const zipped = zip(['a', 'b'], [1, 2], [true, false])// => [['a', 1, true], ['b', 2, false]]unzip(zipped)// => [['a', 'b'], [1, 2], [true, false]] Copy
const zipped = zip(['a', 'b'], [1, 2], [true, false])// => [['a', 1, true], ['b', 2, false]]unzip(zipped)// => [['a', 'b'], [1, 2], [true, false]]
The array of grouped elements to process.
Returns the new array of regrouped elements.
This method is like
zip
except that it accepts an array of grouped elements and creates an array regrouping the elements to their pre-zip configuration.Since
5.3.0
See
unzipWith,zip,zipObject,zipObjectDeep,zipWith
Example