to-pairs

1.0.1 • Public • Published

to-pairs Build Status

Convert an object into an array.

Inspired by _.pairs. 😄

Install

Install with npm

$ npm install to-pairs

Or unpkg

<script src="https://unpkg.com/to-pairs@1.0.0/umd/index.js" />

Check out the unit tests on CodePen.

Usage

const toPairs = require('to-pairs');

toPairs({one: 1, two: 2, three: 3});
//=> [["one", 1], ["two", 2], ["three", 3]]

Like us a lot? Help others know why you like us! Review this package on pkgreview.dev Review us on pkgreview.dev

API

toPairs(object)

list

Type: object
Default: none

The object to convert.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    5
  • 1.0.0
    7

Package Sidebar

Install

npm i to-pairs

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

3.97 kB

Total Files

5

Last publish

Collaborators

  • jonkemp