How does one loop through sub arrays of a parent array but iterate over one index per sub array.
I know the solution I want involves at least iterating over a 2D array but I currently know how to print all elements of sub arrays in a parent array
For example say I have const array = [[1, 2, 3], ['a', 'b', 'c'], ['@', '#', '%']];
How do I get const result = [[1, 'a', '@'], [2, 'b', '#'], [3, 'c', '%'];
?