iteragain
Version:
Javascript Iterable/Iterator/Generator-function utilities.
6 lines • 535 B
TypeScript
import type { IterSource, Iteratee, IteratorOrIterable } from './types';
/** Returns the minimum and maximum from the input iterator as a tuple: `[min, max]`. */
export declare function minmax<T extends IteratorOrIterable<unknown>>(iteratee?: Iteratee<IterSource<T>, number>): (arg: T) => [IterSource<T>, IterSource<T>];
export declare function minmax<T extends IteratorOrIterable<unknown>>(arg: T, iteratee?: Iteratee<IterSource<T>, number>): [IterSource<T>, IterSource<T>];
export default minmax;
//# sourceMappingURL=minmax.d.ts.map