Skip to content

Instantly share code, notes, and snippets.

@thomi137
Created March 19, 2019 11:47
Show Gist options
  • Save thomi137/b434ca8fb8343c74f3596dc759dbc3fb to your computer and use it in GitHub Desktop.
Save thomi137/b434ca8fb8343c74f3596dc759dbc3fb to your computer and use it in GitHub Desktop.
target$ = this.source$.pipe(
concatMap(() => this.buddies$.pipe(
concatAll(),
first(),
map( name => 'Hi ' + name.name))),
flatMap(greeting => greeting))
.subscribe( res => console.log(res));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment