Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

object get array of values

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

Object.entries(data).forEach(([key, value]) => console.log(key, value));
 
PREVIOUS NEXT
Tagged: #object #array #values
ADD COMMENT
Topic
Name
2+6 =