Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js array contains

let fruits = ["Banana", "Orange", "Apple", "Mango"];
let do_contain = fruits.includes("Mango"); // contain: true
 
PREVIOUS NEXT
Tagged: #js #array
ADD COMMENT
Topic
Name
3+5 =