import { IterableX } from '../../iterable/iterablex.js'; import { flatMap } from '../../iterable/operators/flatmap.js'; /** * @ignore */ export function flatMapProto( this: IterableX, fn: (value: TSource) => Iterable, thisArg?: any ): IterableX { return flatMap(fn, thisArg)(this); } IterableX.prototype.flatMap = flatMapProto; declare module '../../iterable/iterablex' { interface IterableX { flatMap: typeof flatMapProto; } }