Typescript: enums and reverse mappings
Example:
enum Colors {
Red = "RED",
Blue = "BLUE"
}
let colorName: string = Colors[Colors.Red];
Enums in TypeScript offer reverse mappings when numeric enums are used.
Solution:
// Utilize the properties of Enums to access values and their reverse mappings.