If your array-of-arrays only has one level, then you can just map
it like this:
var filtered = array.map(subarray => subarray.filter(el => el != null));
console.log(filtered);
1
solved How to remove null values from nested arrays
If your array-of-arrays only has one level, then you can just map
it like this:
var filtered = array.map(subarray => subarray.filter(el => el != null));
console.log(filtered);
1
solved How to remove null values from nested arrays