Im trying to filter and return only not matching results. Now its returning always a full array. How to make it right?
export default {
data() {
return {
search: "",
postList: [
{
title: "hello",
info: ["one", "two", "three", "four"],
},
{
title: "goodbye",
info: ["five", "six"],
},
],
};
},
computed: {
filteredList() {
return this.postList.filter((item) => {
return item.info.some((s) => s != this.search);
});
},
},
};
</script>