I am seeking a way to create an array in TypeScript that contains the values of existing class variables.
For example:
export class example{
static readonly a = 'aval';
static readonly b = 'bval';
static readonly c = 'cval';
}
TO
exampleArray = ['aval', 'bval', 'cval'];
Note: My goal is to gather all variable values from the class into one array, rather than accessing each variable individually like [example.a].