title: How to check if an array is full in javascript
body: <p>I'm currently working on a project where I have to run a certain function once an array has reached 6 elements. I am working with an array of nested arrays and I must check to see if each array has reached 6 elements in capacity. How would I go about doing this? Here is my JS</p>
  <pre><code>board.every(cell =&gt; {
      //checking every array to see if it has 6 elements
      if(cell.length === 7) {
      alert('full!')
        endGame()
      }
  }) 
  </code></pre>
  <p><code>board</code> is the parent array and <code>cell</code> represents each nested array. <code>cell.length</code> is not solving the issue.</p>