🪄 Day 9 of #100DaysOfCode

I always wondered how Promise.race works under the hood. Today, I built a custom version to understand it better!

The task: Take an array of promises and return a new promise that resolves or rejects as soon as any promise in the array settles.
#100DaysOfCode