Promise.any()

Term side of the Card
Topic: Promise
Unit title: Promise.any()
Categories: Method
Explanation side of the Card

Explanation: The static method that takes an iterable of `Promise` objects and as soon as one of the promises in the iterable fulfills, returns a single `Promise` object that resolves with the value from that promise. If no promises in the iterable fulfill, meaning that all are rejected, then the returned promise is rejected with an `AggregateError`.

Browser compatibility:
  • The chrome browser supports this feature starting from version 85
  • The edge browser supports this feature starting from version 85
  • The firefox browser supports this feature starting from version 79
  • The safari browser supports this feature starting from version 14
Availability: