biofriction-wp-theme/node_modules/sort-keys-length
jorge a7910c81a8 moved to new repo 2021-10-26 14:18:09 +02:00
..
node_modules/sort-keys moved to new repo 2021-10-26 14:18:09 +02:00
LICENSE.md moved to new repo 2021-10-26 14:18:09 +02:00
README.md moved to new repo 2021-10-26 14:18:09 +02:00
index.js moved to new repo 2021-10-26 14:18:09 +02:00
package.json moved to new repo 2021-10-26 14:18:09 +02:00

README.md

sort-keys-length Build Status

Sort object keys by length

Install

$ npm install --save sort-keys-length

Usage

var sortKeysLength = require('sort-keys-length');

sortKeysLength.asc({ ab: 'x', a: 'y', abc: 'z' });
//=> { a: 'y', ab: 'x', abc: 'z' }

sortKeysLength.desc({ ab: 'x', a: 'y', abc: 'z' });
//=> { abc: 'z', ab: 'x', a: 'y' }

API

.asc

Ascending sort.

.desc

Descending sort.

License

MIT © Kevin Mårtensson