Checking a string for a specific word

I am using a text field in my app to display a checkmark if a certain word is contained in a string. For instance, I want to check a field in the database for the words ANY AUTO. There can be up to a total of five word in the field separated by commas (i.e. ANY AUTO, SCHEDULED AUTOS, OWNED AUTOS ONLY, etc.). Is there a way to use javascript to check for a word within a string?

Hey Tom!

If you create an array of words you need to check you can use .include() function.

An example:

Hope this helps!