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

x/proc/src/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.10/src/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.