Package Exports
- sort-keys-recursive
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sort-keys-recursive) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
sort-keys-recursive
Sort the keys of an object recursively
Install
npm install sort-keys-recursive --saveIf you want to use in the browser (powered by Browserify):
bower install sort-keys-recursive --saveUsage
var sort = require('sort-keys-recursive')
var object = {
c: 0,
a: {
c: ['c', 'a', 'b'],
a: 0,
b: 0
},
b: 0
}
var output = sort(object)
console.log(output)
// {
// a: {
// a: 0,
// b: 0,
// c: ['a', 'b', 'c']
// },
// b: 0,
// c: 0
// };
License
MIT © Kiko Beats