code: function optionToDefinition(option, defaults) {
              if (!option) {
                  return defaults;
              }
  
              return typeof option === "string"
                  ? optionDefinitions[option]
                  : Object.assign({}, defaults, option);
          }
docs: Returns resolved option definitions based on an option and defaults
  
  @param {any} option - The option object or string value
  @param {Object} defaults - The defaults to use if options are not present
  @returns {Object} the resolved object definition