Files
npm/node_modules/sorted-object/lib/sorted-object.js
Domenic Denicola 6fd6ff7e53 Sort dependencies when --save'ing.
Uses sorted-object package to abstract away code shared by shrinkwrap and
install.
2014-02-20 22:08:07 +01:00

12 lines
210 B
JavaScript

"use strict";
module.exports = function (input) {
var output = Object.create(null);
Object.keys(input).sort().forEach(function (key) {
output[key] = input[key];
});
return output;
};