# has-own-properties

> Extends Object with .hasOwnProperties, which takes an array instead of just a single key.

Latest version **1.0.16** (published 2017-07-06) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.16 |
| Published | 2017-07-06 |
| First published | 2017-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Eirik Birkeland |
| Maintainers | eirikbirkeland |

## Links

- npm: https://www.npmjs.com/package/has-own-properties
- Repository: https://github.com/EirikBirkeland/has-own-properties
- Homepage: https://github.com/EirikBirkeland/has-own-properties#readme
- Issues: https://github.com/EirikBirkeland/has-own-properties/issues
- npm.io page: https://npm.io/package/has-own-properties

## Recent versions

- 1.0.16 (latest) — 2017-07-06
- 1.0.15 — 2017-07-02
- 1.0.14 — 2017-07-01
- 1.0.13 — 2017-07-01
- 1.0.12 — 2017-07-01
- 1.0.11 — 2017-07-01
- 1.0.10 — 2017-06-30
- 1.0.7 — 2017-06-30
- 1.0.6 — 2017-06-30
- 1.0.5 — 2017-06-30
- 1.0.4 — 2017-06-30
- 1.0.1 — 2017-06-30
- 1.0.0 — 2017-06-30

## README

Extends Object with .hasOwnProperties – an array version of .hasOwnProperty.

Returns boolean `true` if every specified property is found.

## Usage:

```js
const dog = {tail: 1, fur: 1}

console.log(
    dog.hasOwnProperties(['tail', 'fur'])
)
// true
```

## Alternative(s) to using this library:

```js
const dog = {tail: 1, fur: 1}

console.log(
    ['tail', 'fur'].every(ele=>dog.hasOwnProperty(ele))
)
// true
```

[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

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