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

x/tsafe/objectFromEntries.ts>objectFromEntries

🔩 The missing TypeScript utils
Latest
function objectFromEntries
import { objectFromEntries } from "https://deno.land/x/tsafe@v1.7.5/objectFromEntries.ts";

Type Parameters

Entry extends readonly [string, any]

Parameters

entries: readonly Entry[]

Returns

[Key in Entry[0]]: Extract<Entry, readonly [Key, any]>[1]