I have an array that consists of a list of arrays. I want to delete the null elements from my array. The below picture is the array. What I want is if the date is null, then the whole part with the value should be removed from the array.
Original Array = [
[[value:null, data:Alcohol],[value:null, data:null]],
[[value:Test, date:Wed],[value:Test2, date:null]],
[[value:Test3, date:null],[value:Test4, date:Wed]],
[[value:Test5, date:Wed],[value:Test6, date:null]]
];
Final Array = [
[[value:null, data:Alcohol]],
[[value:Test, date:Wed]],
[[value:Test3, date:null]],
[[value:Test5, date:Wed]]
];
The original Array
After removing the null values, I need it to be like the below image.
The array show be after

