Check if the value exists in Array in Javascript Posted in : javascript筆記 max-stackoverflow 13 3 月, 2023 Example: const fruits = ["Banana", "Orange", "Apple", "Mango"];fruits.includes("Mango"); check if an item exists in an array: const nums = [ 1, 3, 5, 7]; console.log(nums.includes(3)); // true javascript