o-pairs

1.0.0 • Public • Published

o-pairs

Convert an object into a array of [key, value] pairs

Install

$ npm install --save o-pairs

Example

var pairs = require('o-pairs');
 
console.log(pairs({ America: 'Washington', India: 'Mumbai', Canada: 'Ottawa' }));
// -> [['America', 'Washington'], ['India', 'Mumbai'], ['Canada', 'Ottawa']]

require('o-pairs')(object)

Arguments:

  • object: An object

Returns: Returns array of [key, value] pairs

License

© 2016 Vikram Jadhav. MIT License

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i o-pairs

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • vikramcse