In 2019, a new method was added to the Promise object - allSettled.
The method lets us run some code when the results of a collection of Promises have all been determined, regardless of whether or not they were resolved or rejected.
Code from video: https://gist.github.com/prof3ssorSt3v3/26c858a2a2ae9c34c302639a80b636be
CanIUse reference: https://caniuse.com/mdn-javascript_builtins_promise_allsettled