Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. viewModel$ = combineLatest(source1$, source2$)
  2. .pipe(
  3. map(([source1, source2]) => ({source1, source2}))
  4. )
  5.  
  6. status$ = combineLatest(red$, yellow$, green$)
  7. .pipe(
  8. map(([red, yellow, green]) => red || yellow || green)
  9. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement