How to check if a string contains text from an array of substrings in JavaScript? May 21, 2022 by IT Nursery Pretty straight forward. In javascript, I need to check if a string contains any substrings held in an array. 24 Answers 24