DEV Community

Discussion on: for loop vs .map() for making multiple API calls

Collapse
 
yogendra3236 profile image
Yogendra

This is quite great. But, could you tell me what is the optimum way to resolve multiple promises and get their statuses, as Promise.all() fails as soon as any of the Promise rejects? I heard of Promise.allSettled() but is only available in recent versions of ES.
Thanks!!

Collapse
 
askrishnapravin profile image
Krishna Pravin