UNPKG

obliterator

Version:

Higher order iterator library for JavaScript/TypeScript.

9 lines (6 loc) 205 B
import type {IntoInterator} from './types'; type MapFunction<S, T> = (item: S) => T; export default function map<S, T>( target: IntoInterator<S>, predicate: MapFunction<S, T> ): IterableIterator<T>;