9 lines
205 B
TypeScript
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>;
|