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

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

A better way to work with processes in Deno.
Go to Latest
function map
Re-export
import { map } from "https://deno.land/x/proc@0.21.2/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.