# object-from-entries

> Convert entries to an Object

Latest version **1.0.0** (published 2016-06-17) · MIT license · 0 weekly downloads

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

## Install

```sh
npm install object-from-entries
pnpm add object-from-entries
yarn add object-from-entries
bun add object-from-entries
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-06-17 |
| First published | 2016-06-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Cameron Knight |
| Maintainers | ckknight |
| Keywords | object, properties, entries, convert |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2016-06-17

## README

# object-from-entries
Convert entries to an Object

Intended to be the inverse of [Object.entries](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries)

## Install

```bash
$ npm install --save object-from-entries
```

## Usage

```js
const objectFromEntries = require('object-from-entries');

objectFromEntries([['foo', 'bar'], ['baz', 123]])
//=> {foo: 'bar', baz: 123}

objectFromEntries([])
//=> {}

objectFromEntries(Object.entries({foo: 1, bar: 2, baz: 3}))
//=> {foo: 1, bar: 2, baz: 3}
```

## API

### objectFromEntries(entries)

Enumerates the entries of `entries`, which are expected to be 2-length arrays (a.k.a. tuples) and creates an object from those entries.

## Resources

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

## License
MIT © [Cameron Knight](https://github.com/ckknight)

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