1var data = {specs:[{Name:"Power",Value:"1"},{
2 Name:"Weight",Value:"2"},{Name:"Height",Value:"3"}]}
3
4var valObj = data.specs.filter(function(elem){
5 if(elem.Name == "Power") return elem.Value;
6});
7
8if(valObj.length > 0)
9 console.log(valObj[0].Value)
1<option v-for="(location, index) in locations" v-bind:value="location.id" v-bind:selected="index === 0">
2 {{ location.from }} - {{ location.to }}
3</option>