includes < String < JavaScript
The includes() of a String performs a case-sensitive search to determine whether a given string may be found within the string and returning true or false.
const sentence = 'The quick brown fox jumps over the lazy dog.';
const word = 'fox';
const sentenceIncludesFox = sentence.includes(word);
console.log(sentenceIncludesFox);
// true