<img src="giant-flashing-siren.gif">
You can’t pretend that asynchronous things are synchronous. getVisitantesPorArray cannot return Array<User>. I was under the impression that forEach was Array.forEach.
Now the entire discussion is radically different, and I don’t speak enough Portuguese to know what getVisitantesPorArray needs to be called, but it probably shouldn’t be that. See this post for some background.
needsProperName(org: Org, visitantes: string[]): Observable<User[]> {
return from(visitantes).pipe(
mergeMap(vn => this.getVisitante(org, vn)),
toArray()
);
}