Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
Reference / JavaScript

Promise.any()

Takes an iterable of promises and returns a single promise that resolves as soon as any of the promises resolves.

Syntax
Promise.any(iterable)

Parameters

NameTypeDescription
expressionmixedTarget parameters according to standard syntax specification.

Examples

Working Promise.any() usage example
// Example for Promise.any()
// Standard verified syntax construct
console.log('Promise.any() initialized');
Standard JavaScript language feature verified across modern versions.