Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryanburnette/alphabetize-object-keys
Alphabetize the keys in an object.
https://github.com/ryanburnette/alphabetize-object-keys
Last synced: 17 days ago
JSON representation
Alphabetize the keys in an object.
- Host: GitHub
- URL: https://github.com/ryanburnette/alphabetize-object-keys
- Owner: ryanburnette
- Created: 2018-10-13T15:41:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-13T16:13:32.000Z (over 6 years ago)
- Last Synced: 2024-11-19T19:52:27.576Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# alphabetize object keys
[![npm version](https://badge.fury.io/js/%40ryanburnette%2Falphabetize-object-keys.svg)](https://badge.fury.io/js/%40ryanburnette%2Falphabetize-object-keys)
Turn this...
```javascript
var obj = {
c: 'c',
b: 'b',
a: {
b: 'b',
a: 'a'
}
}
```...into this...
```javascript
var obj = {
a: {
a: 'a',
b: 'b'
}
b: 'b',
c: 'c',
}
```