sindresorhus / ts-extras

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

Add `objectFromEntries()` #25

Closed younho9 closed 2 years ago

younho9 commented 2 years ago

A strongly-typed version of Object.fromEntries().

It is useful to infer object type from array of entries.

sindresorhus commented 2 years ago

Tip for the future: Always do pull requests from a non-main branch.