UNPKG

iteragain

Version:

Javascript Iterable/Iterator/Generator-function utilities.

6 lines 450 B
import type { IterSource, IteratorOrIterable, Predicate } from './types'; /** Return true if only one element in this iterator matches the predicate. */ export declare function some<T extends IteratorOrIterable<any>>(arg: T, predicate: Predicate<IterSource<T>>): boolean; export declare function some<T extends IteratorOrIterable<any>>(predicate: Predicate<IterSource<T>>): (arg: T) => boolean; export default some; //# sourceMappingURL=some.d.ts.map