Closed ersimont closed 3 years ago
Naive implementation:
export function intersection<T>(array1: T[], array2: T[]): T[] { return Array.from(setIntersection(new Set(array1), new Set(array2))); }
Naive implementation: