JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 15
  • Score
    100M100P100Q58232F
  • License MPL-2.0

A side-effect-free polyfill/replacement for `Object.hasOwn` that supports all browsers.

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-own
yarn add @alwatr/has-own

Usage

import {hasOwn} from '@alwatr/has-own';

const obj = {foo: 'bar'};
hasOwn(obj, '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 before submitting a pull request.