Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #string #substring #typescript #online
ADD COMMENT
Topic
Name
9+6 =