i have an object im looping through with a map
datas.children.map((datasAgain) => {
if (datasAgain returns nothing) {
// do something
}
return // do another thing
})
datas.children is inside another map fuction and returns multiple lists of objects, one of those lists is empty "[]", datasAgain returns objects inside of datas.children, how can i check if datasAgain returns nothing here? essentially checking if the list in datas.children is empty