import { IterableX } from '../../iterable/iterablex.js'; import { intersect } from '../../iterable/operators/intersect.js'; /** * @ignore */ export function intersectProto( this: IterableX, second: IterableX, comparer?: (x: T, y: T) => boolean ) { return intersect(second, comparer)(this); } IterableX.prototype.intersect = intersectProto; declare module '../../iterable/iterablex' { interface IterableX { intersect: typeof intersectProto; } }