Hi How to check array inside an array length is empty then remove the parent array from the main array ,
think about i have an array
[
    {
        "id": 71,
        "campaignAssets": [
            {
                "id": 128
            }
        ]
    },
    {
        "id": 99,
        "campaignAssets": []
    }
]
from above array id:71 have campaignAssets array which is length is 1 but on the other one "id": 99 dont have the campaignAssets so i have to remove the parent array which means
    {
        "id": 99,
        "campaignAssets": []
    }
so final array should be
[
    {
        "id": 71,
        "campaignAssets": [
            {
                "id": 128
            }
        ]
    }
]
 
     
     
    