# 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.

```javascript
const firstSuccess = await Promise.any(requests);
```

Level: Freelancer · [More JavaScript terms at this level](https://www.ask-codey.com/glossary/subjects/javascript/freelancer)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/promise-any
