Promise.any()
Widely availableThe Promise.any()
static method returns a promise that fulfills as soon as the first of an iterable of promises fulfills, with that promise’s value. Otherwise, it rejects with an AggregateError
when all of the promises have rejected.