Here is my array:
var testeArray = [
{name: "Jovem1", esteira: "Macaco"},
{name: "Jovem", esteira: "Doido", horse: "Chimbinha"}
];
From the above, I would like to get a array like this:
var propertyName = ["name", "esteira", "horse"];
The array contains all the property names of the objects in the array of objects. I tried Form array of property names found in a JavaScript Object but the result was:
['0', '1']