includes() method is intentionally generic. It does not require this value to be an Array object, so it can be applied to other kinds of objects (e.g. array-like objects).
Read moreWhat to use instead of includes in JavaScript?
indexOf() The Array#indexOf() function is a common alternative to includes() . The indexOf() function returns the first index in the array at which it found valueToFind , or -1 otherwise.
Read moreHow do you make a case insensitive in JavaScript?
The most basic way to do case insensitive string comparison in JavaScript is using either the toLowerCase() or toUpperCase() method to make sure both strings are either all lowercase or all uppercase .
Read moreIs includes JavaScript case-sensitive?
Note: The includes() method is case sensitive i.e, it will treat the Uppercase characters and Lowercase characters differently.
Read more