Skip to content

unzip

Transposes rows into columns.

ts
import { unzip } from '@vielzeug/toolkit';

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