var str1 = “Dimension Data”
var str2 = “Data planet”
I want to compare the above strings and set the condition to true even(as the word data is present in both the strings) if part of the string is matching. Could you please let me know how can this be done?
Output must be true even if part of the string is matches.