0๐
โ
I found a very simple way. Just change:
item.title.toLowerCase().includes(v)
to:
item.title.toLowerCase().includes(v) || item.location.toLowerCase().includes(v))
Source:stackexchange.com