I have computed property which returns the data from getters (vuex) which is again being used in template to show data.
computed: {
returnlist() {
return this.$store.getters[LIST]
},
}
Now I have filters which has needs to do search within available result from computed property.
I am trying
method :{
search() {
this.returnlist.filter(el=>el.name==="test")
}
However this does not filter and if I console I am getting same array provided it matches with given name property.
el.name="test"
Is this what you need exactly. I think you should be doingel.name=="test"
instead. – VarunDevPro