My TypeScript Version is 2.7.1
- enum Country{
-
-
-
-
- }
- 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