Looking to find a match between values in two arrays consisting of arrays.
let arr1 = [[1,3,5],[2,4,7],[1,5,9]] // [false, false, true]
let arr2 = [1,2,4,5,9] // Should return true as arr2 includes all values in arr1[2].
Need the function to return true if all values in an arr1[i] are present in arr2.
for (let i = 0; i < arr1.length; i++) {
if (arr2.every(arr1[i])) {
return true
}
}