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

x/tsafe/objectFromEntries.ts>objectFromEntries

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

Type Parameters

Entry extends readonly [string, any]

Parameters

entries: readonly Entry[]

Returns

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