DEV Community

loading...

Discussion on: Upcoming JavaScript Features in 2021

ageekdev profile image
🅰️ GEEK Author

One example is you can just promise.any several preconditons, pick the first satisfied one and run heavy operation on that only.