// Defining an interface to specify the structure of the object.
interface Person {
id: number;
name: string;
age: number;
city: string;
}
let person: Person = {
id: 838209872,
name: "John",
age: 46,
city: "New York"
};
const firstKey: string = Object.keys(person)[0];
console.log(firstKey);
/*
run:
"id"
*/