Skip to content

unzip

Creates an array of ungrouped elements, where each resulting array contains all elements at a specific index from the input arrays. The first array contains all first elements, the second array contains all second elements, and so on.

Usage

unzip([
["a", 1, true],
["b", 2, false],
]); // [['a', 'b'], [1, 2], [true, false]]

Installation

Terminal window
npx atmx add helper unzip