enum MyEnum {
A = "a",
B = "b",
C = "c"
}
var MyEnum;
(function (MyEnum) {
MyEnum["A"] = "a";
MyEnum["B"] = "b";
MyEnum["C"] = "c";
})(MyEnum || (MyEnum = {}));
{
A: "a",
B: "b",
C: "c"
}
You can get all the keys (["A", "B", "C"]) like this:
Object.keys(MyEnum);
And the values (["a", "b", "c"]):
Object.keys(MyEnum).map(key => MyEnum[key])
Or using Object.values():
Object.values(MyEnum)