how to check if item is in list js

JavaScript
var myList=["a", "b", "c"];
mylist.includes("d")//returns true or false
Source

Also in JavaScript: