Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/hex/fp/associate-array.ts>default

An ecosystem delivering practices, philosophy and portability.
Go to Latest
function default
import { default } from "https://deno.land/x/hex@v0.4.9/fp/associate-array.ts";

Parameters

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

Returns

Record<string | number | symbol, T>