o-pairs
v1.0.0
Published
Convert an object into a array of [key, value] pairs
Downloads
3
Maintainers
Readme
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