Javascript – Recursive function does not iterate to next element in foreach
It seems to me that the code for the 2nd item in items is never reached in the for loop. How to fix this method? class Item { items: Item[] = []; constructor(public id: string) {} } function getItembyIdRecursively(id: string,…