check an array with another array for a similar value code example
Example 1: angular one array contains any of second
const found = arr1.some(r=> arr2.includes(r))
Example 2: check if array values exists in another array
$result = !empty(array_intersect($people, $criminals));