Answers for "typescript find in all words"

0

typescript find in all words

function multiSearchOr(text, searchWords){

   for(var i=0; i<searchWords.length; i++)
   {
    if(text.indexOf(searchWords[i]) == -1)
      return('Not Found!');
   }
   return('Found!');
}

alert(multiSearchOr("Hello my name sam", ["Hello", "my"]));
Posted by: Guest on January-29-2021

Code answers related to "typescript find in all words"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language