Skip to main content
Module

x/abstruct/iter_utils.ts>map

Abstract structure for JavaScript data validation
Latest
function map
import { map } from "https://deno.land/x/abstruct@1.0.0/iter_utils.ts";

Returns an iterator that computes the given mapper function using arguments from each of the iterables.

Parameters

iterable: Readonly<Iterable<T>>
mapper: (item: T) => V

Returns

Iterable<V>