I want to remove or filter out the duplicate values in the output of my v-for loop. So, that 'John' appears only once instead of appearing twice in the output. Is that possible to do in vuejs ?
JS
var app = new Vue({
el: "#app",
data: function () {
return {
searchFields: ['number', 'name'],
search: '',
items: [
{ name: 'Mary'},
{ name: 'John'},
{ name: 'John'},
{ name: 'William'}
]
};
}
});