typescript search string for substring code example
Example: how to check whether a string contains a substring in typescript online
const string = "foo";
const substring = "oo";
console.log(string.includes(substring));
const string = "foo";
const substring = "oo";
console.log(string.includes(substring));