import { IterableX } from '../../iterable/iterablex.js'; import { map } from '../../iterable/operators/map.js'; /** * @ignore */ export function mapProto( this: IterableX, fn: (value: T, index: number) => U, thisArg?: any ): IterableX { return map(fn, thisArg)(this); } IterableX.prototype.map = mapProto; declare module '../../iterable/iterablex' { interface IterableX { map: typeof mapProto; } }