Last active
May 7, 2021 18:01
-
-
Save NyaGarcia/c08f30d937698b5daef038571cec913a to your computer and use it in GitHub Desktop.
Performing logic with pipeable operators
This file contains hidden or 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
pokemon$ | |
.pipe( | |
filter(({ type }) => type !== "Water"), | |
map(pokemon => getStats(pokemon)), | |
tap(stats => logStats(stats)) | |
) | |
.subscribe(stats => saveToPokedex(stats)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment