import { IterableX } from '../../iterable/iterablex.js'; import { maxBy } from '../../iterable/maxby.js'; import { ExtremaOptions } from '../../iterable/extremaoptions.js'; /** * @ignore */ export function maxByProto( this: IterableX, options?: ExtremaOptions ): TSource[] { return maxBy(this, options); } IterableX.prototype.maxBy = maxByProto; declare module '../../iterable/iterablex' { interface IterableX { maxBy: typeof maxByProto; } }