> For the complete documentation index, see [llms.txt](https://docs.tsafe.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tsafe.dev/objectentries.md).

# objectEntries

Functionally equal to `Object.entries` but features a return type more precise than just `[string, T][].`

```typescript
import { assert, type Equals, objectEntries } from "tsafe";

//    v entries is of type ["a", string], ["b", number], ["c", boolean]
const entries = objectEntries({
	a: "foo",
	b: 33,
	c: true,
});

assert<
	Equals<typeof entries, (["a", string] | ["b", number] | ["c", boolean])[]>
>();
```

{% hint style="warning" %}
WARNING: [See `objectKeys()`'s warning](/objectkeys.md).
{% endhint %}
