UNPKG

iteragain

Version:

Javascript Iterable/Iterator/Generator-function utilities.

11 lines 702 B
import type { IterSource, IteratorOrIterable, UniqueParams } from './types'; /** * @lazy * Filters `arg` iterator to only unique values. * @param iteratee Iteratee to use to transform each value before being tested for uniqueness. * @param justSeen If true, will only test for uniqueness with the last value in the iterator and not all values. */ export declare function unique<T extends IteratorOrIterable<unknown>>(params: UniqueParams<T>): (arg: T) => IterableIterator<IterSource<T>>; export declare function unique<T extends IteratorOrIterable<unknown>>(arg: T, params?: UniqueParams<IterSource<T>>): IterableIterator<IterSource<T>>; export default unique; //# sourceMappingURL=unique.d.ts.map