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

x/dtils/record.ts>mapRecord

The best unofficial library of utilities for Deno applications
Go to Latest
function mapRecord
import { mapRecord } from "https://deno.land/x/dtils@2.2.0/record.ts";

Type Parameters

KT extends string
IT
NT

Parameters

record: Record<KT, IT>
fn: (value: IT, key: string) => NT

Returns

Record<KT, NT>