ChemPare Documentation - v0.0.0
    Preparing search index...

    Variable SUBSCRIPTSConst

    SUBSCRIPTS: { [key: string]: string } = ...

    A mapping of regular characters to their Unicode subscript equivalents. Used for converting numbers and basic mathematical symbols to subscript format.

    Type declaration

    • [key: string]: string
    SUBSCRIPTS["2"] // Returns "â‚‚"
    SUBSCRIPTS["+"] // Returns "₊"

    // Usage in strings
    const formula = "H" + SUBSCRIPTS["2"] + "O" // Returns "Hâ‚‚O"