code: function validate(Module, selector) {
    // Verify that the Module is an Object or Class.
    const type = Object.prototype.toString.call(Module);
    const isObject = type === '[object Object]';
    const isFunction = type === '[object Function]';
    if (!(isObject || isFunction)) {
      throw new TypeError(`Module must be an Function (class) or Object. Got "${Object.prototype.toString.call(Module)}".`);
    }
  
    // Verify that the module has not yet been registered.
    if (store.has(selector)) {
      throw new TypeError('The base selector for this module has already been registered. Please use a unique base selector.');
    }
  }
docs: Ensure all required properties exist.
  @param {Object} Module
  @param {string} [selector]
  @throws {TypeError} When something is missing.
  @private