title: How to check if an Array is an Array of empty Arrays in Javascript
body: <p>In my <code>node.js 6.10</code> app, I am trying to identify in my array looks like this:</p>
  
  <pre><code>[
      [
          []
      ],
      []
  ]
  </code></pre>
  
  <p>This nesting can go onto n level, and can have elements in arrays at any level. How can I do this? Thanks</p>
  
  <p><strong>P.S.</strong> I know I can do it using a n level for loop, but was wondering about a more optimized solution.</p>