I have a search bar which would search for places, I only want to return results if the value of the input matches at least two words regardless of their positioning. I've tried using startsWith
but this would only match those starting with.
If I want to search for Central Park, I could either type in the search bar "New york central park" or "Central Park New York" or simply "Central Park" and it will return the result but if I only type in "Park" or "Central", Central Park should not be returned yet