Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mdn .includes

const array1 = [1, 2, 3];
console.log(array1.includes(2));
// expected output: true
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #mdn
ADD COMMENT
Topic
Name
7+9 =