sindresorhus / ts-extras

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

Strongly-typed `objectHasOwn` #10

Closed sindresorhus closed 2 years ago

sindresorhus commented 3 years ago

See: https://github.com/sindresorhus/has-own-prop/issues/3

The issue is about .hasOwnProperty, but we can call it objectHasOwn as that will soon exist, but probably will have the same weak type.

https://github.com/tc39/proposal-accessible-object-hasownproperty