Skip to main content
Module

x/hex/mod.ts>fp.mapObject

An ecosystem delivering practices, philosophy and portability.
Go to Latest
function fp.mapObject
import { fp } from "https://deno.land/x/hex@v0.4.9/mod.ts";
const { mapObject } = fp;

Parameters

instance: Record<string | number | symbol, T1>
predicate: (
value: T1,
key: string | number | symbol,
instance: Record<string | number | symbol, T1>,
) => Record<string | number | symbol, T2> | null

Returns

Record<string | number | symbol, T2>