DEV Community

Discussion on: Useful features of ECMAScript 2019 reviewed

Collapse
 
rbauhn profile image
Robin Bauhn

I very rarely use it but I actually did it yesterday. Most often it's when I run multiple queries to GCP's Firestore (because they don't have OR statements...) and get a bunch of arrays with results in an array with all the promises that I await to let them resolve. Then I have a nested array which is quite neat to flatten.