Typscript erhalten alle Enum -Werte
enum Food {
Banana,
Orange,
Lemon,
}
const allFoods = Object.keys(Food).filter(f => isNaN(f));
Norman
enum Food {
Banana,
Orange,
Lemon,
}
const allFoods = Object.keys(Food).filter(f => isNaN(f));