title: Count values of the inner two-dimensional array - javascript
body: <p>I have a two-dimensional array. I'm trying to count the values within the inner array. I'm aware of JS <code>array.length</code>. But doing <code>testData.length</code> yields 5. Which is accurate. However, I want to count the number of items within each sub array.</p>
  
  <p><code>testData[0].length</code> would yield 6. But how would I dynamically count through each sub array? (as it will change).</p>
  
  <pre><code>var testData = [["column1","test1","test1","tea","party", "water bottle"],
                  ["column2","test2","test2","test2 test2"],
                  ["column3","test2","test2","test2 test2 "],
                  ["column4","test2","test2 test2f asdfsdf"],
                  ["column5","test2","test2 test2f asdfsdfasdfasdfasa asda asdfsas"]
  ]
  </code></pre>