javascript match array with another array code example Example: check if array exists in another array javascript const found = arr1.some(r=> arr2.indexOf(r) >= 0)