Retrieving element from a 2D array in column JAVASCRIPT
<p>i create a table with a 2D array displaying numbers. Now i want to retrieve element from it. the code below is retrieving it row wise. How can i modify the code below to retrieve it column wise?</p>

<pre><code>var newArray;
var buffer ="";
newArray = totalRows.map(function(arrayNode){
        return arrayNode.map(function(node){
               buffer += node.nodeValue.trim();
               cell.innerHTML=buffer;
        });
});
</code></pre>
