iteragain
Version:
Javascript Iterable/Iterator/Generator-function utilities.
6 lines • 429 B
TypeScript
import type { Iteratee, IteratorOrIterable } from './types';
/** Returns a new iterator that maps each element in the input iterator to a new value. */
export declare function map<T, R>(arg: IteratorOrIterable<T>, iteratee: Iteratee<T, R>): IterableIterator<R>;
export declare function map<T, R>(iteratee: Iteratee<T, R>): (arg: IteratorOrIterable<T>) => IterableIterator<R>;
export default map;
//# sourceMappingURL=map.d.ts.map