UNPKG

ix

Version:

The Interactive Extensions for JavaScript

19 lines (15 loc) 482 B
import { IterableX } from '../../iterable/iterablex.js'; import { max } from '../../iterable/max.js'; import { ExtremaOptions } from '../../iterable/extremaoptions.js'; export function maxProto<TSource, TResult = TSource>( this: IterableX<TSource>, options?: ExtremaOptions<TSource, TResult> ): TResult { return max(this, options); } IterableX.prototype.max = maxProto; declare module '../../iterable/iterablex' { interface IterableX<T> { max: typeof maxProto; } }