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
You can do it in in-place by doing only one pass:
function transpose(arr,arrLen) { for (var i = 0; i < arrLen; i++) { for (var j = 0; j