https://github.com/ryanburnette/alphabetize-object-keys
Alphabetize the keys in an object.
https://github.com/ryanburnette/alphabetize-object-keys
Last synced: 4 months 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: 2025-01-20T23:16:25.083Z (6 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
[](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',
}
```