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

x/tsafe/objectEntries.ts>objectEntries

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

Type Parameters

O extends Record<string, any>

Returns

Exclude<[Key in keyof O]: [Key, O[Key]][keyof O], undefined>[]