Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dnx/MapConstructor/methods/from.ts>default

Fluent modular JavaScript utility library.
Latest
function default
import { default } from "https://deno.land/x/dnx@0.0.5/MapConstructor/methods/from.ts";

Parameters

source: Iterable<readonly [K, V]> | ArrayLike<readonly [K, V]>

Returns

Map<K, V>

Parameters

source: Iterable<readonly [K, V]> | ArrayLike<readonly [K, V]>
mapFn: (v: readonly [K, V], k: number) => readonly [L, W]
optional
thisArg: unknown

Returns

Map<L, W>