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

x/dtils/safe_unknown.ts>SafeUnknownObject#map

The best unofficial library of utilities for Deno applications
Latest
method SafeUnknownObject.prototype.map
import { SafeUnknownObject } from "https://deno.land/x/dtils@2.6.1/safe_unknown.ts";

Calls fn on each item in the array, returning a new array made up of the results of fn

Parameters

fn: (value: SafeUnknown, key: string) => T

Returns

Record<string, T>