I want to filter an object and made this:
filteredList() {
return this.messages.filter(message => {
return message.number.toLowerCase().includes(this.search.toLowerCase())
})
}
But this method works only for number in message. What if I want to search the value in whole object?