Jul 6, 2025 · 3 min read · Working with asynchronous operations in JavaScript often means juggling multiple Promises. In many real-world situations, we don’t just wait for all Promises (Promise.all) — sometimes we care about which Promise finishes first, or we want the first s...
Join discussion
Nov 11, 2024 · 4 min read · Promise.any: The Race of the Fittest (First to Resolve Wins) Promises, promises, promises! JavaScript has a few different ways to handle them, but what if you only care about the first promise to succeed? Enter: Promise.any—a superhero for when you'r...
Join discussion
Jul 20, 2024 · 13 min read · Asynchronous Programming allows to perform tasks that takes time to execute (such as fetching data from a server or reading files) without blocking the execution of other code. Instead of waiting for a task to complete, the code moves on to other tas...
Join discussion
Jun 12, 2024 · 12 min read · [12] Preface We're continuing from our last article, which you can read here. It took me a while to come up with the second part, lol I'm sorry work schedule has been a bit crazy. I'm concentrating on questions related to Promises in JavaScript for t...
Join discussion
May 17, 2024 · 3 min read · Introduction The Promise.any() static method takes an iterable of promises as input and returns a single Promise. This returned promise fulfills when any of the input promises fulfills, with the value of the first fulfilled promise. It rejects when a...
Join discussion