Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. of({items: [1, 2, 3]})
  2. .pipe(
  3. switchMap(response => response.items),
  4. map(item => item * 2),
  5. toArray(),
  6. )
  7. .subscribe(items => this.items = items);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement