javascript check if a message has a substring code example
Example: string contains in javascript
const string = "foo";
const substring = "oo";
console.log(string.includes(substring));
const string = "foo";
const substring = "oo";
console.log(string.includes(substring));