UNPKG

@alwatr/polyfill-has-own

Version:
39 lines (23 loc) 821 B
# Object.hasOwn Polyfill A polyfill for `Object.hasOwn`. ## Installation You can install this package using npm or yarn: ```bash npm install @alwatr/polyfill-has-own ``` If you're using Yarn, you can do this with: ```bash yarn add @alwatr/polyfill-has-own ``` ## Usage ```ts import '@alwatr/polyfill-has-own'; const obj = {foo: 'bar'}; obj.hasOwn('foo'); // true ``` ## Sponsors 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](https://github.com/Alwatr/.github/blob/next/CONTRIBUTING.md) before submitting a pull request. ### License This project is licensed under the [AGPL-3.0 License](LICENSE).