I\'ve got an array of arrays, something like:
[ [1,2,3], [1,2,3], [1,2,3], ]
I would like to transpose it to get the following
shortest way with lodash/underscore and es6:
lodash
underscore
es6
_.zip(...matrix)
where matrix could be:
matrix
const matrix = [[1,2,3], [1,2,3], [1,2,3]];