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

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

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

Type Parameters

K extends object
V

Parameters

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

Returns

WeakMap<K, V>

Type Parameters

K
V
L extends object
W

Parameters

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

Returns

WeakMap<L, W>