title: JavaScript remove array with empty elements inside another array
body: <p>I run an process that generates an array of arrays. But sometimes it will generate an array with empty elements</p>
  
  <pre><code>[
   [1,'a','b'],
   [2,'b','c'],
   [3,'c','d'],
   ['', '', ''],
   ['', '', ''],
  ]
  </code></pre>
  
  <p>I need remove those arrays. I tried using filter function </p>
  
  <pre><code>array.filter(el =&gt; el !== '');
  </code></pre>
  
  <p>But doesn't work. Also try different ways with for or foreach loop, but nothing.</p>