I have a scenario where I need to call an API that returns data in the following format:
[{
Id: string,
Value: string,
Value2:
[{Id: string, Value3: string}] ,
{
Id: string,
Value: string,
Value2:
[{Id: string, Value3: string}]
}]
My goal is to loop over Value2 with the lowest complexity and the best approach using JavaScript. How can I achieve this efficiently?