Skip to content

Instantly share code, notes, and snippets.

@rafagsiqueira
Last active January 16, 2021 02:58
Show Gist options
  • Save rafagsiqueira/efb18150c6c339a21ae4dcef15723857 to your computer and use it in GitHub Desktop.
Save rafagsiqueira/efb18150c6c339a21ae4dcef15723857 to your computer and use it in GitHub Desktop.
An array into an observable stream
let someArray = [];
someArray = someOtherArray;
const streamOfItems$ = of(someArray).pipe(
mergeAll()
)
// streamOfItems$ will emit each item of the array as an observable through the stream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment