Function intersection

Creates an array of unique values that are included in all given arrays.

intersection([1, 2], [2, 3]);
// => [2]