docs: function hasEventType(eventObjects, eventType) {
          var i, numberOfEvents = eventObjects.length;
  
          for (i = 0; i < numberOfEvents; i += 1) {
              if (isValueEqualToValue(eventObjects[i].type, eventType)) {
                  return !!eventObjects[i];
              }
          }
  
          return false;
      }