[Vuejs]-How to filter just one item from array with Vuejs

0๐Ÿ‘

โœ…

var t = [
   {
      "id":"1011",
      "name":"Popular Music"
   },
   {
      "id":"1012",
      "name":"Hip Hop & R&B"
   },
   {
      "id":"1014",
      "name":"House Music"
   },
   {
      "id":"1013",
      "name":"Bhangra & Bollywood"
   }
].map(function (a) { return a.id; });
console.log(t);

Hopes this is the one you are looking for.

Leave a comment