# object-first-key

> Returns the first own key of an object

Latest version **1.0.0** (published 2017-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install object-first-key
pnpm add object-first-key
yarn add object-first-key
bun add object-first-key
```

## 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 | 2017-05-06 |
| First published | 2017-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Cameron Knight |
| Maintainers | ckknight |
| Keywords | object, first, key, property |

## Links

- npm: https://www.npmjs.com/package/object-first-key
- Repository: https://github.com/ckknight/object-first-key
- Homepage: https://github.com/ckknight/object-first-key#readme
- Issues: https://github.com/ckknight/object-first-key/issues
- npm.io page: https://npm.io/package/object-first-key

## Recent versions

- 1.0.0 (latest) — 2017-05-06

## README

# object-first-key [![Build Status](https://travis-ci.org/ckknight/object-first-key.svg?branch=master)](https://travis-ci.org/ckknight/object-first-key)

> Returns the first own key of an object

## Install

Ensure you have [Node.js](https://nodejs.org) version 4 or higher installed. Then run the following:

```
$ npm install object-first-key
```

## Usage

```js
// ES5
const objectFirstKey = require('object-first-key');
// ES2015+
import objectFirstKey from 'object-first-key';

objectFirstKey({ hello: 'world' }) === 'hello';
objectFirstKey({}) === undefined;
```

The return value for an object with more than one own property keys is
intentionally left unspecified.

## License

MIT © Cameron Knight

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