ÿØÿà JFIF H H ÿÛ C GIF89;
| System: Linux server378.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64 Current Path : /proc/self/root/lib/node_modules/npm/lib/utils/ |
| Current File : //proc/self/root/lib/node_modules/npm/lib/utils/deep-sort-object.js |
'use strict'
var sortedObject = require('sorted-object')
module.exports = function deepSortObject (obj) {
if (obj == null || typeof obj !== 'object') return obj
if (obj instanceof Array) {
return obj.map(deepSortObject)
}
obj = sortedObject(obj)
Object.keys(obj).forEach(function (key) {
obj[key] = deepSortObject(obj[key])
})
return obj
}