The includes() method of an array returns true if the array includes a specified value.

    
    const pets = ['cat', 'dog', 'bat'];

    const petsIncludesCat = pets.includes('cat');
    console.log(petsIncludesCat);
    // true

    const petsIncludesFish = pets.includes('fish');
    console.log(petsIncludesFish);
    // false