Skip to main content
Module

x/hex/mod.ts>fp.distinctObject

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

Parameters

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

Returns

Record<string | number | symbol, T>