Given a simple structure:
structure IPerson {
firstName: string;
lastName: string;
age: number;
city: string;
favoriteNumber: number;
isMarried: boolean;
hasDriverLicense: boolean;
}
How do I create arrays containing keys grouped by data type? The expected output should be as follows:
['firstName', 'lastName', 'city'] // string
['age', 'favoriteNumber'] // number
['isMarried', 'hasDriverLicense'] // boolean