js check if string match a part of string code example
Example: javascript string contains
var string = "foo",
var substring = "oo";
console.log(string.includes(substring));
var string = "foo",
var substring = "oo";
console.log(string.includes(substring));