UNPKG

ix

Version:

The Interactive Extensions for JavaScript

22 lines (18 loc) 477 B
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; } }