Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/fp/associate-array.ts>associateArray

An ecosystem delivering practices, philosophy and portability.
Go to Latest
function associateArray
import { associateArray } from "https://deno.land/x/hex@0.5.15/src/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>