You are viewing a single comment's thread. Return to all comments →
Javascript solution, we can to split the other side string params, and we can to compare with the function string.includes(itemOfArray)
function checkSubstring(str, arr) { for (let i = 0; i < arr.length; i++) { if (str.includes(arr[i])) { return true } } return false }
Seems like cookies are disabled on this browser, please enable them to open this website
Two Strings
You are viewing a single comment's thread. Return to all comments →
Javascript solution, we can to split the other side string params, and we can to compare with the function string.includes(itemOfArray)