# object-pairs

> Object -> [[key0, value0], [key1, value1]...]

Latest version **0.1.0** (published 2014-12-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install object-pairs
pnpm add object-pairs
yarn add object-pairs
bun add object-pairs
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2014-12-12 |
| First published | 2014-12-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Eugene Sharygin |
| Maintainers | eush77 |
| Keywords | object, pairs, array, keys, values, zip, unzip |

## Links

- npm: https://www.npmjs.com/package/object-pairs
- Repository: https://github.com/eush77/object-pairs
- Issues: https://github.com/eush77/object-pairs/issues
- npm.io page: https://npm.io/package/object-pairs

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2014-12-12

## README

# object-pairs [![Build Status][travis-badge]][travis] [![Dependency Status][david-badge]][david]

[![npm](https://nodei.co/npm/object-pairs.png)](https://nodei.co/npm/object-pairs/)

[travis]: https://travis-ci.org/eush77/object-pairs
[travis-badge]: https://travis-ci.org/eush77/object-pairs.svg
[david]: https://david-dm.org/eush77/object-pairs
[david-badge]: https://david-dm.org/eush77/object-pairs.png

Turn an object into list of `[key, value]` pairs for mapping, iterating or other purposes.

## Example

```js
> pairs = require('object-pairs')
[Function]
> pairs({ foo: 2, bar: 4 })
[ [ 'foo', 2 ],
  [ 'bar', 4 ] ]
```

## API

### `pairs(obj)`

Return list of key-value pairs.

## Install

```shell
npm install object-pairs
```

## License

MIT

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