Implement unzip(arr)
The inverse of zip. Write unzip(arr) that takes an array of tuples and regroups them by position into an array of arrays.
unzip([[1, "a"], [2, "b"], [3, "c"]]); // [[1, 2, 3], ["a", "b", "c"]]Loading compiler resources...
unzip(arr)The inverse of zip. Write unzip(arr) that takes an array of tuples and regroups them by position into an array of arrays.
unzip([[1, "a"], [2, "b"], [3, "c"]]); // [[1, 2, 3], ["a", "b", "c"]]Run your code to see results.
This interactive challenge requires a DeepFrontend Pro membership. Get instant access to write, execute, test, and view verified solution code directly in your browser.
Regional pricing available • Instant access
Stuck? This challenge exercises: