The Promise.any() Method
Learn how Promise.any() returns the fastest resolving promise.
We'll cover the following
Returning the fastest resolving promise
The Promise.any()
method also accepts an iterable of promises and returns a fulfilled promise when any of the passed-in promises are fulfilled. The operation short-circuits as soon as one of the promises is fulfilled.
Get hands-on with 1200+ tech skills courses.