Skip to main content
Module

x/bettermap/mod.ts>BetterMap#find

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

Parameters

fn: (v: V, k: K) => boolean
  • Function to be passed.

Returns

V | undefined

A value from the map. If none found, returns undefined.