contents of array matches another array js code example Example: if array ontains any item of another array js const found = arr1.some(r=> arr2.indexOf(r) >= 0)