How to check if a string contains text from an array of substrings in JavaScript? How to check if a string contains text from an array of substrings in JavaScript? arrays arrays