_.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
array
(Array): The array of grouped elements to process.
Returns
(Array): Returns the new array of regrouped elements.
Example
var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);// => [['a', 1, true], ['b', 2, false]]_.unzip(zipped);// => [['a', 'b'], [1, 2], [true, false]]
当前内容版权归 lodash.com 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 lodash.com .