Of course, you could add the race function as a method to the promise object. To extend the race function to work with any number of promises can be done in two ways, either jQuery's multiple ...
JavaScript should not be judged as if it was a poor version of the other popular languages - it isn't a Java or a C++ clone. It does things its own way and sometime it can do unexpectedly clever ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results