ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Variable SUPERSCRIPTSConst

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

    A mapping of regular characters to their Unicode superscript equivalents. Used for converting numbers and basic mathematical symbols to superscript format. Commonly used for exponents, powers, and scientific notation.

    Type declaration

    • [key: string]: string
    SUPERSCRIPTS["2"] // Returns "²"
    SUPERSCRIPTS["3"] // Returns "³"

    // Usage in strings
    const squared = "x" + SUPERSCRIPTS["2"] // Returns "x²"
    const scientific = "1.2 × 10" + SUPERSCRIPTS["3"] // Returns "1.2 × 10³"
    export const SUPERSCRIPTS: { [key: string]: string } = {
    /* eslint-disable */
    /* tslint:disable */
    "0": "\u2070",
    "1": "\u00B9",
    "2": "\u00B2",
    "3": "\u00B3",
    "4": "\u2074",
    "5": "\u2075",
    "6": "\u2076",
    "7": "\u2077",
    "8": "\u2078",
    "9": "\u2079",
    /* eslint-enable */
    /* tslint:enable */
    } as const;