showing results for - "how to remove sub array null index in javascript"
Cristina
13 Sep 2016
1var array = [ [ 1, , 2 ], [ 3, , 4 ], [ 5, , 6 ] ];
2
3var filtered = array.filter(function (el) {
4  return el != null;
5});
6
7console.log(filtered);