import { IterableX } from '../../iterable/iterablex.js'; import { toMap, ToMapOptions } from '../../iterable/tomap.js'; export function toMapProto( this: IterableX, options: ToMapOptions ): Map { return toMap(this, options); } IterableX.prototype.toMap = toMapProto; declare module '../../iterable/iterablex' { interface IterableX { toMap: typeof toMapProto; } }