keysvalues
v0.0.1
Published
return sorted keys and values from an object
Downloads
3
Readme
keysvalues
return sorted keys and values from an object
Install
$ npm install --save keysvalues
Usage
var keysvalues = require('keysvalues');
var data = {
foo: 'bar',
baz: 1,
unicorn: 'rainbow'
};
var result = keysvalues(data);
//=> { keys: ['baz', 'foo', 'unicorn'], values: [1, 'bar', 'rainbow'] };
API
keysvalues(input)
input
Type: object
Input-Data
License
MIT © hereandnow