Is doing the job performance wise, but has no practical uses for this specific use case. We would have to loop once to build the array of Promises, then loop another time within the for await...of in order to get the datas.
Another downside is that you can't (I think ?) handle the Promises rejection nicely within a for await...of. If one of them reject, you'll have a runtime errors, where Promise.all() has a fail fast built-in, and will reject if any of the Promise reject
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
for await...of ?
Is doing the job performance wise, but has no practical uses for this specific use case. We would have to loop once to build the array of Promises, then loop another time within the for await...of in order to get the datas.
Another downside is that you can't (I think ?) handle the Promises rejection nicely within a for await...of. If one of them reject, you'll have a runtime errors, where Promise.all() has a fail fast built-in, and will reject if any of the Promise reject