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

x/tsafe/index.ts>objectFromEntries

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

Type Parameters

Entry extends readonly [string, any]

Parameters

entries: readonly Entry[]

Returns

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