Answers for "how to get all values of array of object"

CSS
0

object get array of values

const data = {
    "2015": {
        "year": 2015,
        "cover": {}
    }
}

Object.entries(data).forEach(([key, value]) => console.log(key, value));
Posted by: Guest on May-06-2021
2

js get all values of object

Object.values(object1)
Posted by: Guest on February-21-2020

Code answers related to "how to get all values of array of object"

Browse Popular Code Answers by Language