Canboat ts-pgns
    Preparing search index...

    Function getEnumerationValue

    • Retrieves the numeric value associated with a given enumeration name and value string.

      This function looks up an enumeration by its name, then searches for an enumeration value matching the provided value string. If the enumeration name is 'INDUSTRY_CODE' and the value is 'Marine', it will substitute 'Marine Industry' for the lookup. Returns the corresponding numeric value if found, otherwise returns undefined.

      Parameters

      • enumName: string

        The name of the enumeration to search.

      • value: string

        The string value to look up within the enumeration.

      Returns undefined | number

      The numeric value associated with the enumeration value, or undefined if not found.