• Convert a TypeScript syntactic sugar enum to a list of keys.

    This method filters the reverse mapping from value to key.

    Type Parameters

    • T extends object

    Parameters

    • e: T

      Enum to retrieve the keys from

    Returns (keyof T)[]

    The list of keys

    Note

    Index mapping must be contiguous and 0-based.