Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

340 B
Raw Blame
// Some RSS feeds use the id field, some use the guid field, and some use neither.
export function getId(item: { id: string; guid: string }) {
    if (item === undefined) {
      return undefined;
    }
    if (item.guid) {
      return item.guid;
    }
    if (item.id) {
      return item.id;
    }
    return JSON.stringify(item);
  }