How can I extract the headers of objects in an array in TypeScript?
let data = [{name: "A", skills: 50, result: 80},
{name: "B", skills: 40, result: 90},
{name: "C", skills: 60, result: 60}];
let headers = Object.keys(data[0]);
console.log(headers);
// headers = ["name", "skills", "result"]