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 ...