What are Promises? According to MDN The Promise object represents the eventual completion (or failure) of an asynchronous operation and its resulting value. Basically it allows you to add handlers with an asynchronous action's eventual success value ...
roadsidecoder.hashnode.dev6 min read
PromiseRace implementation is not correct, it simply returns the last one. We can fix it by keeping a flag, which will set to true on first then or catch after that it will not trigger resolve or reject any more.
Bishwajeet Pandey
nice one