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

    Variable UOM_ALIASESConst

    UOM_ALIASES: UOMAliases = ...

    A constant mapping of units of measurement to their various string representations. This object implements the UOMAliases interface and provides standardized ways to recognize different text forms of the same unit of measurement.

    Used for parsing and normalizing unit strings in the application, this constant handles variations in spelling, pluralization, and common abbreviations.

    Type: UOMAliases Category: Helper

    Usage examples: // Get all possible representations of kilograms const kgAliases = UOM_ALIASES[UOM.KG]; // ["kilogram", "kilograms", "kg", "kgs"]

    // Check if a string represents a specific unit const isKilogram = UOM_ALIASES[UOM.KG].includes("kg"); // true