Answers for "check if string contains ts"

2

typescript string contains

const test = 'Hello World';
if (test.includes('World')) { 
  // Found world
}
Posted by: Guest on May-28-2020

Code answers related to "check if string contains ts"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language