Skip to content

QuizNot attempted

What each combinator returns

Which combinator resolves to an array of { status, value | reason } objects?
1–4 to choose, Enter to submit
Show answer & explanation

Correct answer:

  • Promise.allSettled
  • Promise.allSettled resolves to one { status: 'fulfilled', value } or { status: 'rejected', reason } per input and never rejects.
  • Not Promise.all: an array of plain values, or the first error.
  • Not Promise.any: a single value, the first success (or AggregateError).
  • Not Promise.race: a single value or error, whichever settles first.