RXJS: Combining multiple calls from foreach into a single observable
问题 I've been trying to combine multiple async calls for a while now, and everytime I get close, I get stuck at a foreach loop I'm trying to solve. At the moment I pass an array of categories to a function, which will return an observable containing an array of all the questions (of all the categories combined). I was thinking of getQuestions(categories: Category[]): Observable<Question[]> { let q: Question[]; categories.forEach(c => { this.cs .getQuestionsCategory(c.id) .pipe(map(questions => q