summaryrefslogtreecommitdiff
path: root/deps/node/deps/npm/node_modules/sorted-object/lib/sorted-object.js
blob: 1b3fe81a6be9302679fd74cae08cf0edc075daef (plain)
1
2
3
4
5
6
7
8
9
10
11
"use strict";

module.exports = function (input) {
    var output = {};

    Object.keys(input).sort().forEach(function (key) {
        output[key] = input[key];
    });

    return output;
};