platform/video.videojs/dist/video.es.js
function isValidEventType(type) {
  return (
    // The regex here verifies that the `type` contains at least one non-
    // whitespace character.
    typeof type === 'string' && /\S/.test(type) || Array.isArray(type) && !!type.length
  );
}
function isValidEventType(type) {
  return (
    // The regex here verifies that the `type` contains at least one non-
    // whitespace character.
    typeof type === 'string' && /\S/.test(type) || Array.isArray(type) && !!type.length
  );
}
Whether a value is a valid event type - non-empty string or array.

@private
@param  {string|Array} type
The type value to test.

@return {boolean}
Whether or not the type is a valid event type.