Loading homepage
Input: await promiseAny([Promise.reject("unavailable"), Promise.resolve("ready")]) Output: "ready"
Input: await promiseAny([0, Promise.resolve(2)]) Output: 0
Input: promiseAny([Promise.reject("first"), Promise.reject("second")]).catch((error) => error.errors) Output: ["first", "second"]
Input: promiseAny([]).catch((error) => error.errors) Output: []
promiseAny(iterable) returns a Promise for the first fulfilled value, or rejects with an AggregateError if all inputs reject. Examples show awaited values or caught errors rather than the Promise object itself.