Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/proc/tests/deps/asynciter.ts>map

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
function map
Re-export
import { map } from "https://deno.land/x/proc@0.20.17/tests/deps/asynciter.ts";

Map the sequence from one type to another.

Parameters

iterable: AsyncIterable<T>

An iterable collection.

mapFn: (item: T) => U | Promise<U>

The mapping function.

Returns

AsyncIterableIterator<U>

An iterator of mapped values.