Package Exports
- @alwatr/has-own
Readme
Object.hasOwn Polyfill
A side-effect-free polyfill/replacement for Object.hasOwn that supports all browsers.
Installation
npm install @alwatr/has-ownyarn add @alwatr/has-ownUsage
import {hasOwn} from '@alwatr/has-own';
const obj = {foo: 'bar'};
hasOwn(obj, '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.