Answers for "how to remove sub array null index in javascript"

0

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);
Posted by: Guest on December-01-2020

Code answers related to "how to remove sub array null index in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language