Trying to get filter the results in array2 based on the value type of array1 but the resultant array always prints the last value in t
array2
type
array1