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