Javascript – Executing a function for each resolved Promise in Promise.all
I am using Promise.all to handle multiple promises simultaneously, but I also need to run a function for each resolved promise. The issue I'm facing is that if I pass the function directly to the .then() of the promise, it…