Promise.all, allSettled, race, any
Comes up in: Coding
This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.
What it covers
- accepting any iterable
- non-promise values
- result order
- empty input
- AggregateError for
any
Words you will know
What you will practise
- implement all four (timed)
Interview questions this answers
- Implement
Promise.any.