MV Searching for word in a string

Hello!
I found somewhere in this forum a solution to this problem, but I would need it a little bit different.
(Thread I found: https://forums.rpgmakerweb.com/index.php?threads/check-for-more-than-1-word-in-a-string.119936/ )

There they had this script call, which searched for certain words in a string.
But my problem is, that this code just comes out "true" if all the words are in the string. But I would like it to search in the string of any of the words is there.

Script:
JavaScript:
(function(){ words = ["this", "should", "do", "it"]; for(i=0;i<words.length;i++){if(!RegExp("\\b"+words[i]+"\\b").test($gameVariables.value(x).toLowerCase())){break}};if(words.length===i)return!0})();

Example:
Words: "love", "heart"
Sentence: I love you.

With the Script it would come "false" cause its only love and not heart, too.
But I would like it to be "true" because one of the words were in the sentence.
Try this:
["love", "heart"].some(w=>"I love you".includes(w))

Original thread: https://forums.rpgmakerweb.com/threads/searching-for-word-in-a-string.168651/