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:
(3) [Array(2), empty, Array(2)]
0: (2) ["A", 2]
2: (2) ["B", 4]
length: 3
__proto__: Array(0)
What's the best way to remove the empty array ?
 var arr = [];
    
   var z = 0;
    for (var i = 0; i < props.data.length;  i += 2) {
    
     arr[i] =  [props.data[i][1], parseFloat(props.data[i+1][1]), ] 
    }
