TAKPacket-SDK — TypeScript - v0.7.0
    Preparing search index...

    Function howToEnum

    • Map a CoT how attribute string (e.g. "m-g") to its CotHow enum value.

      Parameters

      • s: string

        The how attribute from <event how="…">.

      Returns number

      The numeric CotHow enum value, or COTHOW_UNSPECIFIED (0) when the string is unknown.