Answers for "how to verify if a stiring contains another string in nodejs"

2

how to check whether a string contains a substring in javascript

const string = "foo";
const substring = "oo";

console.log(string.includes(substring)); // true
 Run code snippet
Posted by: Guest on October-19-2021
3

javascript check if string contains a text substring

stringVariable.includes("Your Text");
Posted by: Guest on November-22-2020

Code answers related to "how to verify if a stiring contains another string in nodejs"

Code answers related to "Javascript"

Browse Popular Code Answers by Language