Flattening nested Observables
问题 I'm a stuck in nested observable hell and could do with a hand. I have the following block of code return this.findUser(term).map( users => { return users.map( user => this.getLastLogin(user.user_id).map( last_login => { user.last_login = last_login; return user; })); }); findUser returns Observable<User[]> and getLastLogin returns Observable<number> . I'm basically hoping to fetch a list of users and then update this with the information from another value. Right now the code above is