Which statement about Promise.allSettled() is correct?

JavaScript Developer Medium

JavaScript Developer — Medium

Which statement about Promise.allSettled() is correct?

Key points

  • Promise.allSettled() returns an array of {status, value/reason} objects for all promises
  • It does not reject immediately upon any promise rejection
  • It differs from Promise.all() in handling rejected promises

Ready to go further?

Related questions