Created
March 3, 2022 09:43
-
-
Save GerritRiesch94/e0ad33028c388b224979cb0aeb0d8d2f to your computer and use it in GitHub Desktop.
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
export function extractIdsOfSolvedCases() { | |
return function(source: Observable<Report>): Observable<number[]> { | |
return source.pipe( | |
filter((report) => report.solved), | |
map((report) => report.id), | |
toArray() | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment