@alwatr/polyfill-has-own
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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

Package Sidebar

Install

npm i @alwatr/polyfill-has-own

Weekly Downloads

2

Version

1.0.5

License

MIT

Unpacked Size

7.04 kB

Total Files

11

Last publish

Collaborators

  • njfamirm
  • alimd