src/transpose.js
function baseTranspose(matrix) {
  return map(head(matrix), function (column, index) {
    return map(matrix, function (row) {
      return row[index];
    });
  });
}
function baseTranspose(matrix) {
  return map(head(matrix), function (column, index) {
    return map(matrix, function (row) {
      return row[index];
    });
  });
}
function baseTranspose ( matrix ) { return map ( head ( matrix ) , function ( column , index ) { return map ( matrix , function ( row ) { return row [ index ] ; } ) ; } ) ; }
Base matrix transpose. Turns an n by m matrix into m by n.
@private
@param {Array} matrix - Two-dimensional array (n by m).
@returns {Array} Returns m by n matrix.
Base matrix transpose . Turns an n by m matrix into m by n .