var saperatedIngredients = [{
ingredients: (2) ['Aar maach', 'Fish fillet']
searchfilter: "marine fish"
},
{ingredients: ['Active dry yeast']
searchfilter: "yeast"
},
{ingredients: (5) ['Ajwain', 'Cumin powder', 'Tamarind', 'Tamarind paste', 'Tamarind water']
searchfilter: "miscellaneous derived edible product of plant origin"
}
]
but i want the output like this
const IngredientsArray = ['Aar maach', 'Fish fillet', 'Active dry yeast','Ajwain', 'Cumin powder', 'Tamarind', 'Tamarind paste', 'Tamarind water']
anyone help me out for this problem