info = [
{
list: [
{ title: 'apple'}
]
},
{
list: [
{ title: 'banana'}
]
}
]
My goal here is to extract the list items. Here is how they are structured.
desired result:
info = [
{
title: 'apple'
},
{
title: 'banana'
}
];
This will eliminate the empty array and consolidate the data accordingly.