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 --save
If you want to use in the browser (powered by Browserify):
bower install sort-keys-recursive --save
and later link in your HTML:
<script src="bower_components/sort-keys-recursive/dist/sort-keys-recursive.js"></script>
Usage
recursive = require('sort-keys-recursive');
var object = {
c: 0,
a: {
c: ['c', 'a', 'b'],
a: 0,
b: 0
},
b: 0
};
console.log(recursive(object));
// {
// a: {
// a: 0,
// b: 0,
// c: ['a', 'b', 'c']
// },
// b: 0,
// c: 0
// };
License
MIT © Kiko Beats