pamoja for TypeScript - v0.2.0
    Preparing search index...

    Function enumEntry

    • Names the entry of an enumeration that stands for a value.

      Parameters

      • enumeration: string

        The enumeration's name, such as MAV_STATE.

      • value: number

        The value a field carried.

      Returns string | null

      The entry's name, or null if no entry names the value.

      If the enumeration is unknown, or the value is not a whole number from 0 up.

      enumEntry('MAV_STATE', heartbeat.get('system_status')) // 'MAV_STATE_STANDBY'