ix
Version:
The Interactive Extensions for JavaScript
22 lines (18 loc) • 477 B
text/typescript
import { IterableX } from '../../iterable/iterablex.js';
import { intersect } from '../../iterable/operators/intersect.js';
/**
* @ignore
*/
export function intersectProto<T>(
this: IterableX<T>,
second: IterableX<T>,
comparer?: (x: T, y: T) => boolean
) {
return intersect(second, comparer)(this);
}
IterableX.prototype.intersect = intersectProto;
declare module '../../iterable/iterablex' {
interface IterableX<T> {
intersect: typeof intersectProto;
}
}