What does the `Promise.allSettled()` method return?
-
A
A promise that rejects if any input promise rejects
-
B
A promise that resolves with an array of outcome objects for all promises
-
C
A promise that resolves with the first settled value
-
D
An array of boolean values indicating promise states