an array of any primitive type
an array of values found inside both arrays.
Return the intersection of two arrays. This assumes that the array values are primitives (this does not work if values are objects), and will stringify the values to compare, so 5 === "5" will match. If inside each arrays contains duplicates, the number of duplicates in the result will match the number shared between the two.
an array of any primitive type