Returns an array of items that appear in all of the given arrays.
function intersection<T>(firstArray: T[], ...otherArrays: T[][])
// Example:
const arr = [1, 2, 3, 4]
const arr2 = [2, 3, 4, 5]
const arr3 = [3, 4, 5, 6]
intersection(arr1, arr2, arr3) //=> [3, 4]