# own-enumerable-keys

> gets own enumerable property names and symbols

Latest version **1.0.0** (published 2015-07-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install own-enumerable-keys
pnpm add own-enumerable-keys
yarn add own-enumerable-keys
bun add own-enumerable-keys
```

## 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 | 2015-07-20 |
| First published | 2015-07-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Matt DesLauriers |
| Maintainers | mattdesl |
| Keywords | property, enumerable, keys, object, getOwnPropertySymbols, getOwnPropertyNames, objects, assign |

## Links

- npm: https://www.npmjs.com/package/own-enumerable-keys
- Repository: https://github.com/mattdesl/own-enumerable-keys
- Issues: https://github.com/mattdesl/own-enumerable-keys/issues
- npm.io page: https://npm.io/package/own-enumerable-keys

## Recent versions

- 1.0.0 (latest) — 2015-07-20

## README

# own-enumerable-keys

[![frozen](http://badges.github.io/stability-badges/dist/frozen.svg)](http://github.com/badges/stability-badges)

Gets own property names and Symbols that are enumerable. 

Implementation from Sindre Sorhus' [object-assign](https://github.com/sindresorhus/object-assign) ponyfill.

## Install

```sh
npm install own-enumerable-keys --save
```

## Example

```js
var keys = require('own-enumerable-keys')
var zip = Symbol('zip')

var obj = {
  foo: 'bar',
  blah: 'foo',
  [zip]: 'foobar'
}

keys(obj)
//=> ['foo', 'blah', Symbol(zip)]
```

## Usage

[![NPM](https://nodei.co/npm/own-enumerable-keys.png)](https://www.npmjs.com/package/own-enumerable-keys)

#### `keys = ownEnumerableKeys(obj)`

For the given `obj`, returns a list of keys which represent its enumerable and *own* property and Symbol names.

See also:

- [propertyIsEnumerable()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable)
- [getOwnPropertyNames()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames)
- [getOwnPropertySymbols()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertySymbols)

## License

MIT, see [LICENSE.md](http://github.com/mattdesl/own-enumerable-keys/blob/master/LICENSE.md) for details.

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