keysvalues

0.0.1 • Public • Published

keysvalues Build Status

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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i keysvalues

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • hereandnow