Promise.allSettled() takes an iterable of promises as its input parameter and returns a single promise. The result of each input promise will be resolved into an array of the entire results. When all three promises get resolved, resolves and the values will be printed. But wait, what if one promise (or more) is not resolved.
Table of contents
5 Essential Points You Should Be Familiar With as a JavaScript Developer#1 - Promise.all() vs Promise.allSettled()#2 - Nullish Coalescing Operator ‘??’#3 - Wrong References To “this”#4 - Bad Memory Usage#5 - Favor Map/Object Literal Over Switch-CaseSort: