I am just figuring out this issue and want to see if anyone knows how to deal with this. I have an array with a nested property called children(which is an array of arrays). I would like to know if there is any way I can extract the objects within the array and have it pushed into a new array.
Here is my code:
const getCities = () => {
const result = menus.locations;
console.log(result)
}
And here is the image of what I have from the console log of that code: