java script contains method code example
Example 1: javascript string includes
'Blue Whale'.includes('blue') // returns false
Example 2: javascript includes
const pets = ['cat', 'dog', 'bat'];
console.log(pets.includes('cat'));
// output: true