how to get value of array of object code example
Example: object get array of values
const data = {
"2015": {
"year": 2015,
"cover": {}
}
}
Object.entries(data).forEach(([key, value]) => console.log(key, value));
const data = {
"2015": {
"year": 2015,
"cover": {}
}
}
Object.entries(data).forEach(([key, value]) => console.log(key, value));