const str =
'Hello world'
;
const subStr =
'world'
const includesSubStr = str.includes(subStr);
console.log(includesSubStr);
// true