//#region src/functions/intersection/intersection.d.ts /** * Gets the intersection between two arrays. * @param array1 The first array. * @param array2 The second array. * @param comparator A function that determines whether two items are equal. * @returns An array with the intersection between the two arrays. * @example * ```ts * intersection([1, 2, 3], [2, 3, 4]) // [2, 3] * ``` */ declare function intersection(array1: readonly T[], array2: readonly S[], comparator?: Comparator): S[]; /** * Gets the intersection between two arrays. * @param array1 The first array. * @param array2 The second array. * @param comparator A function that determines whether two items are equal. * @returns An array with the intersection between the two arrays. * @example * ```ts * intersection([1, 2, 3], [2, 3, 4]) // [2, 3] * ``` */ declare function intersection(array1: readonly T[], array2: readonly S[], comparator?: Comparator): S[]; type Comparator = ((a: T, b: S) => a is S) | ((a: T, b: S) => boolean); //#endregion export { intersection as t }; //# sourceMappingURL=intersection-DyFdzMu4.d.ts.map