Answers for "check array that has elements from another array"

9

javascript check if elements of one array are in another

const found = arr1.some(r=> arr2.includes(r))
Posted by: Guest on March-26-2020
1

get element of an array inside another array

let array=[[1,2,3],
           ["apple","mango","grapes"],
           [true true false]]
//to get apple =====  arrayName[class][subclass]
console.log(array[1][0])
Posted by: Guest on August-28-2020

Code answers related to "check array that has elements from another array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language