As you can see, there is an item named maths in the array of item. Now inside the maths, we have another array of syllabus. I want to join the names of all the syllabus of maths. In simple terms, say I want to do something like this:
array element 1- maths - CBSE,StateBoard
array element 2- chemistry - CBSE,StateBoard
AFAIK, we can't do it without 2 forEach loops. Is there any better way to deal with this situation?