Skip to content

Instantly share code, notes, and snippets.

@GerritRiesch94
Created March 3, 2022 09:43
Show Gist options
  • Save GerritRiesch94/e0ad33028c388b224979cb0aeb0d8d2f to your computer and use it in GitHub Desktop.
Save GerritRiesch94/e0ad33028c388b224979cb0aeb0d8d2f to your computer and use it in GitHub Desktop.
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