Skip to main content
Module

x/hex/mod.ts>fp.associateObject

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

Parameters

instance: Record<string | number | symbol, T>
predicate: (
value: T,
key: string | number | symbol,
instance: Record<string | number | symbol, T>,
) =>
| string
| number
| symbol
| undefined

Returns

Record<string | number | symbol, T>