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