Please, whats the best way for checking if some text sentence have some of the keywords provided, and there could be 100 keywords.
For example:
var text = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.";
var keywords = ["lorem", "sit", "elit", "sed do"];
Now whats the best and fastest way to check if any of keywords is in text, but like whole word not part of word, and its case-insensitive?
BTW Its Google Script, maybe there is some function which I didnt see :\
Thanks in advance