Skip to content

unzip

unzip(pairs) → \[array, array\] · Binary

Unzip an array of pairs into two separate arrays (inverse of zip).

  • pairs (required): array of 2-element arrays
utlx
unzip([[1, "a"], [2, "b"], [3, "c"]])    // [[1, 2, 3], ["a", "b", "c"]]

Released under AGPL-3.0.