sindresorhus / ts-extras

Essential utilities for TypeScript projects
MIT License
587 stars 15 forks source link

Proposal: Strongly-typed version of `Object.entries()` #11

Closed younho9 closed 2 years ago

younho9 commented 2 years ago

Like Object.keys(), Object.entries() always returns array of string(key) and value type tuple.

It would be useful to add a strongly-typed version of Object.entries() as well.

sindresorhus commented 2 years ago

Sounds good.