Promise Array Methods in JavaScript
It can be difficult to remember the usecases for all the different types of array based Promise methods when most of their functionality is similar (but still different in important ways). So here is a table of the features and levels of browser support:
Promise.any() Resolves when any promise is successful (resolved) Browser/Node.js Support Minimal Link https://obscurejavascript.tumblr.com/post/189814490444/waiting-for-the-first-returned-api-result-with
Promise.race() Resolves when any promise is resolved or rejected (e.g. an error occured) Browser/Node.js Support All Modern Link https://obscurejavascript.tumblr.com/post/190221199570/waiting-for-the-first-returned-or-errored-api
Promise.all() Resolves when all promises are resolved successfully Browser/Node.js Support All Modern Link https://obscurejavascript.tumblr.com/post/184347636679/waiting-for-all-promises-to-execute-in-javascript














