how to check whether a string contains a substring in typescript online
const string = "foo";
const substring = "oo";
console.log(string.includes(substring));
how to check whether a string contains a substring in typescript online
const string = "foo";
const substring = "oo";
console.log(string.includes(substring));
typescript string contains
const test = 'Hello World';
if (test.includes('World')) {
// Found world
}
how to check whether a string contains a substring in typescript online
const string = "https://dmzlgw-bhdcdev.test.att.com";
const substring = "att.com";
console.log(string.includes(substring));
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us