summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/sorted-object/lib/sorted-object.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/sorted-object/lib/sorted-object.js')
-rw-r--r--deps/npm/node_modules/sorted-object/lib/sorted-object.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/deps/npm/node_modules/sorted-object/lib/sorted-object.js b/deps/npm/node_modules/sorted-object/lib/sorted-object.js
new file mode 100644
index 000000000..26ebd500a
--- /dev/null
+++ b/deps/npm/node_modules/sorted-object/lib/sorted-object.js
@@ -0,0 +1,11 @@
+"use strict";
+
+module.exports = function (input) {
+ var output = Object.create(null);
+
+ Object.keys(input).sort().forEach(function (key) {
+ output[key] = input[key];
+ });
+
+ return output;
+};