@alwatr/polyfill-has-own
v1.0.5
Published
A polyfill for `Object.hasOwn`.
Downloads
120
Readme
Object.hasOwn Polyfill
A polyfill for Object.hasOwn
.
Installation
You can install this package using npm or yarn:
npm install @alwatr/polyfill-has-own
If you're using Yarn, you can do this with:
yarn add @alwatr/polyfill-has-own
Usage
import '@alwatr/polyfill-has-own';
const obj = {foo: 'bar'};
obj.hasOwn('foo'); // true