easy - accepted / - tried
This problem is similar to 31. implement async helper -
race(), but with Promise.
The Promise.race() method returns a promise that fulfills or rejects as soon as one of the promises in an iterable fulfills or rejects, with the value or reason from that promise. source: MDN
Can you create a
race() which works the same as
Let's try to solve this problem within 10 mintues.