After searching for an answer in other posts, I felt I have to ask this. I looked at How do I check if an array includes an object in JavaScript? and Best way to find if an
It's as simple as iterating the array and looking for the regexp
function searchStringInArray (str, strArray) { for (var j=0; j
Edit - make str as an argument to function.
str