check string contains in typescript code example
Example 1: javascript string contains function
s = "Hello world";
console.log(s.includes("world"));
Example 2: typescript string contains
const test = 'Hello World';
if (test.includes('World')) {
// Found world
}