I have a string or I can make it an array of strings. and when I try to filter it using includes if there are more than one search terms it doesn't return anything where is my mistake?
villas() {
return this.$store.state.villas.filter((villa) => {
return villa.f.includes(this.toFilter)
});
}
here is toFilter is the array of search terms and f is the string i make the searching