刘琳琳 97c35fdf0d 航汇HHArome小程序容器演示 2 months ago
..
node_modules 97c35fdf0d 航汇HHArome小程序容器演示 2 months ago
LICENSE.md 97c35fdf0d 航汇HHArome小程序容器演示 2 months ago
README.md 97c35fdf0d 航汇HHArome小程序容器演示 2 months ago
index.js 97c35fdf0d 航汇HHArome小程序容器演示 2 months ago
package.json 97c35fdf0d 航汇HHArome小程序容器演示 2 months ago

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