If I have
export const FOODS = {
FRUITS: {/* ... */},
RED_MEATS: {/* ...* },
POULTRY: {/* ...* },
VEGETALBES: {/* ... */},
}
export const CARNIVORE = {
RED_MEATS,
POULTRY,
}
Is there a quick way to export all the keys of FOODS without being explicit?
I would like to be able to do something like
export const {...} = FOODS;
The closest thing I can think would work is
export const {FRUITS, RED_MEATS, POULTRY, VEGETABLES} = FOODS;
But I have a large number of keys and would like something that requires less lines / less maintance