When I want to filter my data
based on the title value, here's how I do it:
data.filter(x => x.title.includes(term))
For example, with data like:
Sample one
Sample Two
Bla two
The filtered result would be:
Bla two
If I'm filtering by two
.
However, what I actually need is the filtered result to include:
Sample Two
Bla two