A corda angular contém
const string = "foo";
const substring = "oo";
console.log(string.includes(substring));
2 Programmers 1 Bug
const string = "foo";
const substring = "oo";
console.log(string.includes(substring));
var string = "foo";
var substring = "oo";
console.log(string.indexOf(substring) !== -1);