0
Q:

typescript string contains

var str = "Hello world, welcome to the universe.";
var n = str.includes("world");
10
const test = 'Hello World';
if (test.includes('World')) { 
  // Found world
}
2

New to Communities?

Join the community