You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Andrea Gaertner 668e16c315 Einkaufsliste application_liste hinzugefügt 3 years ago
..
LICENSE.md Einkaufsliste application_liste hinzugefügt 3 years ago
README.md Einkaufsliste application_liste hinzugefügt 3 years ago
index.js Einkaufsliste application_liste hinzugefügt 3 years ago
package.json Einkaufsliste application_liste hinzugefügt 3 years 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