Skip to main content
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.4-rc.0/objectFromEntries.ts";

Type Parameters

Entry extends readonly [string, any]

Parameters

entries: readonly Entry[]

Returns

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