Строка TypeScript содержит
const test = 'Hello World';
if (test.includes('World')) {
// Found world
}
Spotless Shark
const test = 'Hello World';
if (test.includes('World')) {
// Found world
}