Not sure if title is formulated correct, but I have a JS object that looks like:
parent:{
children:[
{
id: "1"
user:[
{
id: 'aa',
email:'aa@google.com'
},
{
id: 'b',
email:'bbb@google.com'
},
]
},
{
id:"2",
user: [
{
id:'aa',
email:'aa@google.com'
},
{
id:'eee',
email:'eee@google.com'
}
]
}
]
}
The object is way bigger but follows the above structure.
How would I go to get a list of topics each user is on, filtered b ID? E.g. 'aa' participates in children 1 and 2 'b' participates in child 1 etc.
I figure it out I have to map the object but not sure how to proceed after that