Typscript enum zu String
enum AnEnum {
One = 1,
Two = 2
}
let stringOne = AnEnum[1]; // "One"
let stringTwo = AnEnum[AnEnum.Two]; // "Two"
DeuxAlpha
enum AnEnum {
One = 1,
Two = 2
}
let stringOne = AnEnum[1]; // "One"
let stringTwo = AnEnum[AnEnum.Two]; // "Two"
enum Food {
Banana,
Orange,
Lemon,
}
const allFoods = Object.keys(Food).filter(f => isNaN(f));
print ("she sells /nseashells")
print ("by the seashore")