-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
QuestionAn issue which isn't directly actionable in codeAn issue which isn't directly actionable in code
Description
My TypeScript Version is 2.7.1
- enum Country{
-
India = "INR",
-
France = "EUR",
-
USA = "USD",
-
Germany = France
- }
- let vx : Country = Country.India;
- console.log("vx is "+vx);
- console.log("enum name is "+Country[vx]);
The output are as follows
vx is INR
enum name is undefined
In Line 9, the reverse mapping is not working for string based enum.
Thanks
Kannan Wisen
paroxyzm
Metadata
Metadata
Assignees
Labels
QuestionAn issue which isn't directly actionable in codeAn issue which isn't directly actionable in code