check if an array contains one of the elements from another array code example
Example: javascript check if elements of one array are in another
const found = arr1.some(r=> arr2.includes(r))
const found = arr1.some(r=> arr2.includes(r))