# own-all

> Turns inherited properties into owned properties.

Latest version **1.0.0** (published 2018-03-06) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2018-03-06 |
| First published | 2018-03-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 1 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | John Lamansky |
| Maintainers | lamansky |
| Keywords | object, own, prototype, inherited, properties |

## Links

- npm: https://www.npmjs.com/package/own-all
- Repository: https://github.com/lamansky/own-all
- Issues: https://github.com/lamansky/own-all/issues
- npm.io page: https://npm.io/package/own-all

## Dependencies (1)

- [copy-own](https://npm.io/package/copy-own.md) ^1.1.0

## Recent versions

- 1.0.0 (latest) — 2018-03-06

## README

# own-all

Turns inherited properties into owned properties.

Returns a new object. Does not modify the original.

## Installation

Requires [Node.js](https://nodejs.org/) 6.0.0 or above.

```bash
npm i own-all
```

## API

The module exports a single function.

### Parameter

`obj` (object): The object which may possess owned and/or inherited properties.

### Return Value

A new object which owns all of the properties, both owned and inherited, of `obj`.

## Example

```javascript
const ownAll = require('own-all')

Reflect.ownKeys(ownAll({a: 1})) /*
[
  'a',
  'constructor',
  '__defineGetter__',
  '__defineSetter__',
  'hasOwnProperty',
  '__lookupGetter__',
  '__lookupSetter__',
  'isPrototypeOf',
  'propertyIsEnumerable',
  'toString',
  'valueOf',
  '__proto__',
  'toLocaleString'
]
*/

// If you only want enumerable properties, use `Object.keys()` etc:
Object.keys(ownAll({a: 1})) // ['a']
```

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