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

x/hex/src/mod.ts>fp.associateArray

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

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>