# has-own

> A safer .hasOwnProperty() - hasOwn(name, obj)

Latest version **1.0.1** (published 2019-12-17) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-12-17 |
| First published | 2014-07-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Aaron Heckmann |
| Maintainers | aaron, pebble-tech |

## Links

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

## Recent versions

- 1.0.1 (latest) — 2019-12-17
- 1.0.0 — 2014-07-26

## README

#has-own

[![Build Status](https://travis-ci.org/pebble/has-own.svg?branch=master)](https://travis-ci.org/pebble/has-own)

Shorthand `Object.prototype.hasOwnProperty.call(obj, name)`.

```js
var assert = require('assert');
var hasOwn = require('has-own');

var o = Object.create(null);
o.name = 'has-own';

assert(hasOwn('name', o)); // true
```

Why another module? Because I like its readability.

[LICENSE](https://github.com/pebble/has-own/blob/master/LICENSE)

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