So entfernen Sie den Sub -Array -Null -Index in JavaScript

var array = [ [ 1, , 2 ], [ 3, , 4 ], [ 5, , 6 ] ];

var filtered = array.filter(function (el) {
  return el != null;
});

console.log(filtered);
Successful Shrike