How can I get the search filter to be selective about the object properties?
Example:
Data being iterated over:
[{
name: "Jake",
favoriteFood: "Banana"
},
{
name: "Max",
favoriteFood: "Pizza"
}]
Goal is to only have the searchFilter respond to name searches
Input -> "Ja"
Result ->[{
name: "Jake",
favoriteFood: "Banana"
}]
Input -> "Banana"
Result ->[]
How can I get the search filter to be selective about the object properties?
Example:
Data being iterated over:
Goal is to only have the searchFilter respond to name searches