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

x/dtils/mod.ts>SafeUnknownObject#map

The best unofficial library of utilities for Deno applications
Go to Latest
method SafeUnknownObject.prototype.map
import { SafeUnknownObject } from "https://deno.land/x/dtils@2.3.1/mod.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>