• Returns an enum entry by its index. The order is not guaranteed.

    Returns

    The enum entry, or if out of bounds, undefined.

    Type Parameters

    • E

    • K extends string

    Parameters

    • enumObject: Record<K, E>

      The full enumeration. EG: ItemType, CreatureType, DoodadType, etc

    • n: number

      The index of the enum entry.

    Returns Exclude<E, AnyFunction> | undefined

Generated using TypeDoc