I'm using a JS array to find matches, what I have works fine for single word search or multi work searchs if the words are in the same order, but try below with "truck d" and Duck Truck and Donald Truck don't show.
Any help appreciated
https://codepen.io/kodee/pen/WNMWMqa?editors=1111