Though the answer is already provided, Almost no one pointed to the docs
Here’s a snippet
enum Enum {
A
}
let nameOfA = Enum[Enum.A]; // "A"
Keep in mind that string enum members do not get a reverse mapping generated at all.
More Related Contents:
- How do the different enum variants work in TypeScript?
- How to programmatically enumerate an enum type?
- Enum as Parameter in TypeScript
- Generic type to get enum keys as union string in typescript?
- What is an idiomatic way of representing enums in Go?
- Check if value exists in enum in TypeScript
- Unwrap inner type when enum variant is known
- Dart How to get the name of an enum as a String
- Cast int to enum strings in Typescript
- Typescript has unions, so are enums redundant?
- In Rust, is there a way to iterate through the values of an enum?
- Typescript: string literal union type from enum
- Does Dart support enumerations?
- How can I loop through enum values for display in radio buttons? [duplicate]
- TypeScript enum to object array
- Effective Enums in Kotlin with reverse lookup?
- Pass enums in angular2 view templates
- How to use enum as index key type in typescript?
- How do I conditionally check if an enum is one variant or another?
- Can traits be used on enum types?
- Using enums as types allows values that don’t exist in the enum
- Typescript `enum` from JSON string
- Read response headers from API response – Angular 5 + TypeScript
- What is the syntax for Typescript arrow functions with generics?
- How to extend String Prototype and use it next, in Typescript?
- How to declare a Fixed length Array in TypeScript
- Do you use enum types in your WCF web services?
- Default property value in React component using TypeScript
- Why I am not getting warnings about StrictNullChecks in typescript
- Angular 2 disable sanitize