title: Get nth element of every array in an array in JavaScript efficiently
body: <p><code>a = [[1,2,3],[1,2,3],[1,2,3]]</code></p>
  
  <p>I want b such that it is equal to <code>[2,2,2]</code>, which is <code>a[:][1]</code>, i.e. second element of every array in a. I don't want to use a for loop.</p>
  
  <p>I wanted a javascript equivalent of Python's numpy's <code>a[:,1]</code> which outputs <code>[2,2,2]</code>, if possible.</p>
  
  <p>Please note that I do know that I can iterate through every array in <code>a</code> to get the second element.</p>