# has

> Object.prototype.hasOwnProperty.call shortcut

Latest version **1.0.4** (published 2023-10-03) · MIT license · 0 weekly downloads

> **Native alternative:** Object.prototype.hasOwnProperty.call(obj, prop) (or in later versions of node, "Object.hasOwn(obj, prop)") — Use native JavaScript (Node 0.10.0+) (https://developer.mozilla.orgGlobal_Objects/Object/hasOwnProperty)

## Install

```sh
npm install has
pnpm add has
yarn add has
bun add has
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2023-10-03 |
| First published | 2013-10-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/has) |
| Module format | CommonJS |
| Node | >= 0.4.0 |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 60 |
| Author | Thiago de Arruda |
| Maintainers | tarruda |

## Links

- npm: https://www.npmjs.com/package/has
- Repository: https://github.com/tarruda/has
- Issues: https://github.com/tarruda/has/issues
- npm.io page: https://npm.io/package/has

## Recent versions

- 1.0.4 (latest) — 2023-10-03
- 1.0.3 — 2018-06-04
- 1.0.2 — 2018-06-02
- 1.0.1 — 2015-07-24
- 1.0.0 — 2014-10-07
- 0.0.1 — 2013-10-08

## README

# has

> Object.prototype.hasOwnProperty.call shortcut

## Installation

```sh
npm install --save has
```

## Usage

```js
var has = require('has');

has({}, 'hasOwnProperty'); // false
has(Object.prototype, 'hasOwnProperty'); // true
```

---
_Source: https://npm.io/package/has · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
