typescript find in all words

Solutions on MaxInterview for typescript find in all words by the best coders in the world

showing results for - "typescript find in all words"
Malak
24 Jan 2017
1function multiSearchOr(text, searchWords){
2
3   for(var i=0; i<searchWords.length; i++)
4   {
5    if(text.indexOf(searchWords[i]) == -1)
6      return('Not Found!');
7   }
8   return('Found!');
9}
10
11alert(multiSearchOr("Hello my name sam", ["Hello", "my"]));
similar questions
queries leading to this page
typescript find in all words