This is how I filter some data
by title value:
data.filter(x => x.title.includes(term))
So data like
Sample one
Sample Two
Bla two
will be 'reduced' to
Bla two
if I'm filtering by two
.
But I need to get the filtered result
Sample Two
Bla two