Is there a pattern where you can loop over a list of data (dynamically derived in JS Policy) and then loop over this list and Service callout - with the data from the loop being part of the URL path. Essentially
Step 1: const filteredAndMappedData = dynamicArrayOfString.filter(...).map(...);
Step2: const listOfResponses = filteredAndMappedData.forEach(data => return ServiceCallout for the `data`);