how to see howmany arrays an array element contains code example
Example 1: typescript check if element in array
your_array.includes(the_element)
Example 2: angular one array contains any of second
const found = arr1.some(r=> arr2.includes(r))
your_array.includes(the_element)
const found = arr1.some(r=> arr2.includes(r))