title: How to remove an empty array index
body: <p>I have an array of array created from a for-loop which is incremented by 2. As a result the end result array looks like this:</p>
  <pre><code>(3) [Array(2), empty, Array(2)]
  0: (2) [&quot;A&quot;, 2]
  2: (2) [&quot;B&quot;, 4]
  length: 3
  __proto__: Array(0)
  </code></pre>
  <p>What's the best way to remove the empty array ?</p>
  <pre><code> var arr = [];
      
     var z = 0;
      for (var i = 0; i &lt; props.data.length;  i += 2) {
      
       arr[i] =  [props.data[i][1], parseFloat(props.data[i+1][1]), ] 
  
      }
  </code></pre>