I have an array for instance
humans:[
dave: {
...daveData
},
mike: {
...mikeData
}
]
now calling human[0] returns {..daveData} but how can I get the NAME of the KEY meaning 'dave', 'mike' as a string ... sorry if I'm repeating myself, but I didn't find similar questions.
Also to say im using React to render
tags using array.map()
{humans:[{dave: {...}}, {mike: { ... }}]}or[{dave: {...}}, {mike: { ... }}]??