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