Answers for "how get one value of array of object in javascript"

1

how get one value of array of object in javascript

let value = [
  {
    "value": "html",
    "label": "html"
  },
  {
    "value": "javascript",
    "label": "javascript"
  }
];
value.map((item)=>item.label)
Posted by: Guest on October-09-2021
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

Code answers related to "how get one value of array of object in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language