Skip to main content
Module

x/bettermap/mod.ts>BetterMap#map

An extension of the Map class with more Array-like features.
Go to Latest
method BetterMap.prototype.map
import { BetterMap } from "https://deno.land/x/bettermap@v1.1.0/mod.ts";

Map the Map into an Array.

Parameters

fn: (v: V, k: K) => T
  • Function for mapping.

Returns

T[] | []

Array.