[ad_1]
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
[ad_2]
solved How to remove null values from nested arrays
[ad_1]
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
[ad_2]
solved How to remove null values from nested arrays