ChemPal Documentation - v1.6.0
    Preparing search index...

    Function getPubchemIdFromDocument

    • Gets the PubChem ID from the links in the document.

      Parameters

      • doc: Document

        The document to search for PubChem links

      Returns undefined | number

      The PubChem ID, or undefined if not found

      const pubchemId = getPubchemIdFromDocument(document);
      console.log(pubchemId);
      // Outputs: 1234567890