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

    Variable SUPERSCRIPT_GLYPHSConst

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

    A mapping of ASCII digits to their Unicode superscript glyphs, written as the literal characters (⁰–⁹) rather than the \uXXXX escapes used by SUPERSCRIPTS. The mapped values are identical to SUPERSCRIPTS for the digit keys — this is purely the literal-glyph spelling, handy where a source regex needs the visible characters.

    Type declaration

    • [key: string]: string
    SUPERSCRIPT_GLYPHS["2"] // Returns "²"
    const squared = "x" + SUPERSCRIPT_GLYPHS["2"] // Returns "x²"
    export const SUPERSCRIPT_GLYPHS: { [key: string]: string } = {
    /* tslint:disable */
    '0': '⁰',
    '1': '¹',
    '2': '²',
    '3': '³',
    '4': '⁴',
    '5': '⁵',
    '6': '⁶',
    '7': '⁷',
    '8': '⁸',
    '9': '⁹',

    /* tslint:enable */
    } as const;