Skip to content

Instantly share code, notes, and snippets.

@ajcrites
Created October 12, 2022 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajcrites/f64dab7a06e259cc5320961fb7a4745a to your computer and use it in GitHub Desktop.
Save ajcrites/f64dab7a06e259cc5320961fb7a4745a to your computer and use it in GitHub Desktop.
deleteStaleSpecials() {
return from(this.specials.filter(({ stale }) => stale)).pipe(
mergeMap(special =>
from(this.deleteSpecial(special)).pipe(
catchError(e => of(e))
)
)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment