2024-10-15 23:05:53 +03:00

9 lines
205 B
TypeScript

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>;