Loading problem…
Implement a promiseRace function that behaves like the native Promise.race.
The function takes an array of promises (or values) and returns a new Promise that settles as soon as the first input settles (either resolves or rejects).
Promise.resolve.