Web features explorer

Promise.any()

Widely available
Tags: javascript Groups: JavaScript > Promises

The 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. To learn more, see AggregateError, AggregateError() constructor, AggregateError: errors, Promise.any() at MDN.

Compatibility

Specifications