how to tell if a element is present in a list in js code example Example: see if array contains array javascript const found = arr1.some(r=> arr2.indexOf(r) >= 0)