Ciąg TypeScript zawiera

const test = 'Hello World';
if (test.includes('World')) { 
  // Found world
}
Spotless Shark