So I have
typedef Choices = 'choice1' | 'choice2' | 'choice3' | 'choice4' ...
const choices: Choices[] = ['choice1', 'choice2', 'choice3', 'choice3', 'choice4' ...];
Is there a more elegant way of spreading out all the Choices into an array (and object keys for that matter)?
I'd like to say something like
const choices: Choices[] = [ ...Choices ];
So that the code adapts if additional strings are added