title: How to loop through multiple arrays, within an array of arrays using a single value for an index?
body: <p>I'm trying to solve a problem where you have an array</p>
  <pre><code>array = [[a,b,c],[e,f,g],[h,i,j]]
  </code></pre>
  <p>I want to loop through the first letter of the first array, then look at the first of all the other arrays then do a comparison whether they're equal or not. I'm unsure how to do this given that a loop will go through everything in its array. I wrote a nested loop below, but I know it's know it's not the right approach. I basically want something that looks
  like
  <code> if (array[0][0] == array[1][0] == array[2][0])</code>, then repeat for each element in <code>array[0]</code></p>
  <pre><code>  var firstWord = array[0];
    var remainderWords = array.slice(1); 
    for(var i = 0; i &lt; firstWord.length; i++){
      for (var j = 0; i&lt; remainderWords.length; j++){
  
        if firstWord[i] == remaindersWord[j][i]
      }
  
  </code></pre>
  <p>Any help would be appreciated.</p>