How can I check if an array of strings contains part of words stored in another array of strings ?
Let's say I've declared these three arrays :
array1 = ["Lorem", "ipsum", "dolor" "sit" "amet"]
array2 = ["Lorem", "ipsum"]
keywords = ["ipsum", "dol"]
When comparing array1 with keywords, I want to get something like true because "ipsum" and "dol" are in array1, but false, when comparing array2 with keywords because "dol" isn't in array2
I searched for an hour, but I don't know how to do it... I succeeded to compare arrays with one keyword, but not with several keywords.
["ipsum", "dolor"]? (dol -> dolor)ipsumor part of words like justipsu