Home / Javascript Tips Generated By ChatGPT / Using Array.includes() to Check for Presence in Javascript Determine if an array contains a certain value. Source Code let fruits = ["apple", "banana", "mango"]; console.log(fruits.includes("banana")); // true