Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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