I have a case in which sometimes, an unknown amount of image links is returned. The image urls will always end with "p[page number].png", e.g.: p1.png, p2.png etc.
What I wanna do is loop through 10 max items and get the images from the server until the first 404 is returned - then I want to store the "problematic" item.
What is the best approach for this? I thought using forkJoin but then it emits all members of the array immediately and I don't have a trace of the "problematic" request.
Thanks!