DEV Community

Discussion on: Sanity Tip For JavaScript Devs: Learn to Run Asynchronous Functions in Array.map()

Collapse
 
chiangs profile image
Stephen Chiang

One use case for getting a promise back is if you are uploading a bunch of files and you want to check if any of them failed and do some operation to either auto try that specific one or help the user figure out which one failed.