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 ...