The Promise.any() Method

Learn how Promise.any() returns the fastest resolving promise.

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 1400+ tech skills courses.