Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js array string includes

if (new RegExp(substrings.join("|")).test(string)) {
    // At least one match
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #array #string #includes
ADD COMMENT
Topic
Name
2+3 =