Facebook
From Buff Agouti, 4 Years ago, written in Plain Text.
This paste is a reply to Untitled from Crippled Horse - go back
Embed
Viewing differences between Untitled and Re: Untitled
var x = [[1, 2],[3, 4],[5, 6]];
var y = [];
var temp = [];
var i = 0;

while ( i < x[0].length) {
  var c = 0;
  while ( c < 
x.forEach(function(item, index) length ) {
    y[i][index] y[c] x[index][i];
  })
x[c][i] ;
    c++

  }
  //console.log(y);
  temp.push(y);
  i++
}

console.log(y);log(temp);