Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript check if array is in array

var array = [1, 3],
    prizes = [[1, 3], [1, 4]],
    includes = prizes.some(a => array.every((v, i) => v === a[i]));

console.log(includes);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #check #array #array
ADD COMMENT
Topic
Name
7+3 =