When searching for data in an array, the first thing to consider is "what do you want to know?" If you simply want to check whether the data exists in the array, the includes method is the best choice ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results