how to remove sub array null index in javascript code example
Example: how to remove 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);