Files
2026-02-25 00:50:23 +05:30

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