Description

Tells you if array includes a certain element:

Syntax

console.log(["a", "b", "c"].includes("a")); // true
console.log(["a", "b", "c"].includes("d")); // false