I have an object with key value pairs inside an array:
error : [ { firstName : true },
{ lastName : false },
{ email : true }
]
I want to fetch the key from objects.
I tried this, but this will show undefined in output
let result = error.map((row, index) => {
console.log("key" + row[0] + " index " + index);
}