Example 1 — Official Docs Unzip
Split stooge rows into name, age, and flag columns.
_.unzip([
["moe", 30, true],
["larry", 40, false],
["curly", 50, false]
]);
// → [["moe", "larry", "curly"], [30, 40, 50], [true, false, false]] How It Works
- Three rows. Each row is
[name, age, flag]. - Column 0. Collect every name → first output array.
- Column 1 & 2. Ages and flags form the next two arrays.
- Shape. Three rows × three fields → three column arrays of length three.

