All challenges

JavaScript challenge · Frontend

Promise.any

Difficulty

medium

Time

~25m

Format

Single

Grading

Auto-graded

#frontend#javascript#typescript#async#promises
Mission file // read carefullymedium

Implement promiseAny(promises) mirroring Promise.any: resolve with the first promise to fulfill (ignoring rejections). If every promise rejects, reject with an error whose message is "All promises were rejected".

Build with

TypeScriptJavaScript
Hidden test suite
Auto-graded on submit
Start challenge

Sign in to save your progress.