diff options
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.js | 11 |
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; +}; |