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

x/asynciter/map.ts>map

Map, filter, reduce for AsyncIterables in Deno.
Go to Latest
function map
import { map } from "https://deno.land/x/asynciter@0.0.15/map.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.