Answers for "test string contains / ts"

3

typescript string contains

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

Code answers related to "test string contains / ts"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language