var array = [ [ 1, , 2 ], [ 3, , 4 ], [ 5, , 6 ] ]; var filtered = array.filter(function (el) { return el != null; }); console.log(filtered);