Last active
January 16, 2021 02:58
-
-
Save rafagsiqueira/efb18150c6c339a21ae4dcef15723857 to your computer and use it in GitHub Desktop.
An array into an observable stream
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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