code: function readValue(name) {
    let value;
    if (pubcidConfig.typeEnabled === COOKIE) {
      value = getCookie(name);
    } else if (pubcidConfig.typeEnabled === LOCAL_STORAGE) {
      value = getStorageItem(name);
      if (!value) {
        value = getCookie(name);
      }
    }
  
    if (value === 'undefined' || value === 'null') { return null; }
  
    return value;
  }
docs: Read a value either from cookie or local storage
  @param {string} name Name of the item
  @returns {string|null} a string if item exists