4.17.11
3.10.1
2.4.2
1.3.1
_.unzip(array)
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
1.2.0
Arguments
argument
array
type
Array
description
The array of grouped elements to process.
Returns
(array)
Example
var zipped = _.zip(
["a", "b"],
[1, 2],
[true, false]
);
// => [['a', 1, true], ['b', 2, false]]
_.unzip(zipped);
// => [['a', 'b'], [1, 2], [true, false]]
var zipped = _.zip(["a", "b"], [1, 2], [true, false]);
// => [['a', 1, true], ['b', 2, false]]
_.unzip(zipped);
// => [['a', 'b'], [1, 2], [true, false]]