Promise.any()
A method returning the first fulfilled input or rejecting if all inputs reject.
What does Promise.any() do in JavaScript?
Promise.any() — A method returning the first fulfilled input or rejecting if all inputs reject.
const firstSuccess = await Promise.any(requests);
Level: Freelancer · More JavaScript terms at this level
Updated