docs: function race(entries, label) {
      /*jshint validthis:true */
      var Constructor = this;
  
      var promise = new Constructor(_rsvpInternal.noop, label);
  
      if (!_rsvpUtils.isArray(entries)) {
        _rsvpInternal.reject(promise, new TypeError('You must pass an array to race.'));
        return promise;
      }
  
      var length = entries.length;
  
      function onFulfillment(value) {
        _rsvpInternal.resolve(promise, value);
      }
  
      function onRejection(reason) {
        _rsvpInternal.reject(promise, reason);
      }
  
      for (var i = 0; promise._state === _rsvpInternal.PENDING && i < length; i++) {
        _rsvpInternal.subscribe(Constructor.resolve(entries[i]), undefined, onFulfillment, onRejection);
      }
  
      return promise;
    }