How to Test Element in Array (In Array) and Array Contains in Javascript?

The Javascript has the includes function that can be used to test if a given array or string contains an element or character. For example: .includes("a"); true .includes("aa"); false …