• Returns whether the given number is a valid entry in an enum.

    Type Parameters

    • E

    Parameters

    • enumObject: undefined | Record<string, E>

      The enum object to check for the entry.

    • entry: unknown

      The value to check.

    • isBasicEnum: boolean = true

      Whether the enum is a "basic" enum; IE, every entry is a number between 0 and Infinity. (Default: true)

    Returns entry is E

Generated using TypeDoc