@alwatr/polyfill-has-own
v5.5.21
Published
A polyfill for `Object.hasOwn`.
Maintainers
Readme
Object.hasOwn Polyfill
A polyfill for Object.hasOwn.
Installation
You can install this package using npm or yarn:
npm install @alwatr/polyfill-has-ownIf you're using Yarn, you can do this with:
yarn add @alwatr/polyfill-has-ownUsage
import '@alwatr/polyfill-has-own';
const obj = {foo: 'bar'};
obj.hasOwn('foo'); // trueSponsors
The following companies, organizations, and individuals support Nanolib ongoing maintenance and development. Become a Sponsor to get your logo on our README and website.
Contributing
Contributions are welcome! Please read our contribution guidelines before submitting a pull request.
